|
| 1 | +# Astro Starter Kit: Minimal |
| 2 | + |
| 3 | +```sh |
| 4 | +npm create astro@latest -- --template minimal |
| 5 | +``` |
| 6 | + |
| 7 | +<!-- ASTRO:REMOVE:START --> |
| 8 | + |
| 9 | +[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal) |
| 10 | +[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal) |
| 11 | +[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json) |
| 12 | + |
| 13 | +<!-- ASTRO:REMOVE:END --> |
| 14 | + |
| 15 | +> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! |
| 16 | +
|
| 17 | +## 🚀 Project Structure |
| 18 | + |
| 19 | +Inside of your Astro project, you'll see the following folders and files: |
| 20 | + |
| 21 | +```text |
| 22 | +/ |
| 23 | +├── public/ |
| 24 | +├── src/ |
| 25 | +│ └── pages/ |
| 26 | +│ └── index.astro |
| 27 | +└── package.json |
| 28 | +``` |
| 29 | + |
| 30 | +Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. |
| 31 | + |
| 32 | +There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. |
| 33 | + |
| 34 | +Any static assets, like images, can be placed in the `public/` directory. |
| 35 | + |
| 36 | +## 🧞 Commands |
| 37 | + |
| 38 | +All commands are run from the root of the project, from a terminal: |
| 39 | + |
| 40 | +| Command | Action | |
| 41 | +| :------------------------ | :----------------------------------------------- | |
| 42 | +| `npm install` | Installs dependencies | |
| 43 | +| `npm run dev` | Starts local dev server at `localhost:4321` | |
| 44 | +| `npm run build` | Build your production site to `./dist/` | |
| 45 | +| `npm run preview` | Preview your build locally, before deploying | |
| 46 | +| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | |
| 47 | +| `npm run astro -- --help` | Get help using the Astro CLI | |
| 48 | + |
| 49 | +## 👀 Want to learn more? |
| 50 | + |
| 51 | +Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). |
0 commit comments