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