Stick a saltire on a photo
at master 48 lines 2.1 kB view raw view rendered
1# Astro Starter Kit: Basics 2 3```sh 4pnpm create astro@latest -- --template basics 5``` 6 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) 10 11> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! 12 13![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554) 14 15## 🚀 Project Structure 16 17Inside 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 31To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/). 32 33## 🧞 Commands 34 35All commands are run from the root of the project, from a terminal: 36 37| Command | Action | 38| :------------------------ | :----------------------------------------------- | 39| `pnpm install` | Installs dependencies | 40| `pnpm dev` | Starts local dev server at `localhost:4321` | 41| `pnpm build` | Build your production site to `./dist/` | 42| `pnpm preview` | Preview your build locally, before deploying | 43| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` | 44| `pnpm astro -- --help` | Get help using the Astro CLI | 45 46## 👀 Want to learn more? 47 48Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).