Skip to content

Commit 17d9722

Browse files
committed
init astro
1 parent 81d8d9e commit 17d9722

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1979
-11954
lines changed

β€Ž.gitignore

+23-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
node_modules
21
*.log*
32
.nuxt
43
.nitro
@@ -9,3 +8,26 @@ dist
98
.vercel
109

1110
sw.*
11+
tmp/
12+
13+
# build output
14+
dist/
15+
16+
# generated types
17+
.astro/
18+
19+
# dependencies
20+
node_modules/
21+
22+
# logs
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
pnpm-debug.log*
27+
28+
# environment variables
29+
.env
30+
.env.production
31+
32+
# macOS-specific files
33+
.DS_Store

β€Ž.vscode/extensions.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
4+
}

β€Ž.vscode/launch.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

β€Ž.vscode/settings.json

-6
This file was deleted.

β€ŽREADME.md

+38-30
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,54 @@
1-
# Portfolio Site
1+
# Astro Starter Kit: Basics
22

3-
Portfolio site build with [nuxt 3](https://v3.nuxtjs.org)
4-
5-
## Setup
3+
```sh
4+
npm create astro@latest -- --template basics
5+
```
66

7-
Make sure to install the dependencies:
7+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
8+
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
9+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
810

9-
```bash
10-
# npm
11-
npm install
11+
> πŸ§‘β€πŸš€ **Seasoned astronaut?** Delete this file. Have fun!
1212
13-
# pnpm
14-
pnpm install --shamefully-hoist
15-
```
13+
![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)
1614

17-
## Development Server
15+
## πŸš€ Project Structure
1816

19-
Start the development server on http://localhost:3000
17+
Inside of your Astro project, you'll see the following folders and files:
2018

21-
```bash
22-
npm run dev
19+
```text
20+
/
21+
β”œβ”€β”€ public/
22+
β”‚ └── favicon.svg
23+
β”œβ”€β”€ src/
24+
β”‚ β”œβ”€β”€ components/
25+
β”‚ β”‚ └── Card.astro
26+
β”‚ β”œβ”€β”€ layouts/
27+
β”‚ β”‚ └── Layout.astro
28+
β”‚ └── pages/
29+
β”‚ └── index.astro
30+
└── package.json
2331
```
2432

25-
## Production
33+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
2634

27-
Build the application for production:
35+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
2836

29-
```bash
30-
npm run build
31-
```
32-
33-
Locally preview production build:
37+
Any static assets, like images, can be placed in the `public/` directory.
3438

35-
```bash
36-
npm run preview
37-
```
39+
## 🧞 Commands
3840

39-
Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/presets) for more information.
41+
All commands are run from the root of the project, from a terminal:
4042

41-
## API
43+
| Command | Action |
44+
| :------------------------ | :----------------------------------------------- |
45+
| `npm install` | Installs dependencies |
46+
| `npm run dev` | Starts local dev server at `localhost:4321` |
47+
| `npm run build` | Build your production site to `./dist/` |
48+
| `npm run preview` | Preview your build locally, before deploying |
49+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
50+
| `npm run astro -- --help` | Get help using the Astro CLI |
4251

43-
### tile.png
52+
## πŸ‘€ Want to learn more?
4453

45-
An endpoint to generate tiles with text and/or emojis. \
46-
To use this endpoint goto [schelpkikker.nl/api/tile.png?content=lorem%20ipsum](https://schelpkikker.nl/api/tile.png?content=lorem%20ipsum) where everything after the `?content=` can be an [uri encoded](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI) string
54+
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

β€Žapp.vue

-43
This file was deleted.

β€Žassets/NotoColorEmoji-Regular.ttf

-22.6 MB
Binary file not shown.

β€Žassets/PTSerif-Italic.ttf

-227 KB
Binary file not shown.

β€Žassets/tile.jpg

-123 KB
Binary file not shown.

β€Žastro.config.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { defineConfig } from 'astro/config';
2+
3+
// https://astro.build/config
4+
export default defineConfig({});

β€Žcomponents/atoms/PostItem.vue

-120
This file was deleted.

β€Žcomponents/atoms/ScrollArrow.vue

-71
This file was deleted.

0 commit comments

Comments
Β (0)