Inside of this project, you'll see the following folders and files:
/
├── public/
│ └── ... any files or resources that need to be available from the website directly
├── src
│ ├── assets
│ │ └── ... any files or resources that will be displayed in page content
│ ├── components
│ │ └── Header, Footer, PageBanner, and maybe more in the future.
│ ├── layouts
│ │ └── Layout.astro (just the one for now)
│ └── pages
│ └── Actual content for all of the pages!
└── package.json
To learn more about the folder structure of an Astro project, refer to the official guide on project structure.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
Refer to the contribution guidelines