Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

README.md

47 lines2.1 KB

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