|
| 1 | +# Astro Starter Kit: Basics |
| 2 | + |
| 3 | +```sh |
| 4 | +deno create astro@latest -- --template basics |
| 5 | +``` |
| 6 | + |
| 7 | +[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) |
| 8 | +[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics) |
| 9 | +[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json) |
| 10 | + |
| 11 | +> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! |
| 12 | +
|
| 13 | + |
| 14 | + |
| 15 | +## 🚀 Project Structure |
| 16 | + |
| 17 | +Inside of your Astro project, you'll see the following folders and files: |
| 18 | + |
| 19 | +```text |
| 20 | +/ |
| 21 | +├── public/ |
| 22 | +│ └── favicon.svg |
| 23 | +├── src/ |
| 24 | +│ ├── layouts/ |
| 25 | +│ │ └── Layout.astro |
| 26 | +│ └── pages/ |
| 27 | +│ └── index.astro |
| 28 | +└── package.json |
| 29 | +``` |
| 30 | + |
| 31 | +To learn more about the folder structure of an Astro project, refer to |
| 32 | +[our guide on project structure](https://docs.astro.build/en/basics/project-structure/). |
| 33 | + |
| 34 | +## 🧞 Commands |
| 35 | + |
| 36 | +All commands are run from the root of the project, from a terminal: |
| 37 | + |
| 38 | +| Command | Action | |
| 39 | +| :--------------------- | :----------------------------------------------- | |
| 40 | +| `deno install` | Installs dependencies | |
| 41 | +| `deno dev` | Starts local dev server at `localhost:4321` | |
| 42 | +| `deno build` | Build your production site to `./dist/` | |
| 43 | +| `deno preview` | Preview your build locally, before deploying | |
| 44 | +| `deno astro ...` | Run CLI commands like `astro add`, `astro check` | |
| 45 | +| `deno astro -- --help` | Get help using the Astro CLI | |
| 46 | + |
| 47 | +## 👀 Want to learn more? |
| 48 | + |
| 49 | +Feel free to check [our documentation](https://docs.astro.build) or jump into |
| 50 | +our [Discord server](https://astro.build/chat). |
0 commit comments