npm create astro@latest -- --template basics🧑🚀 Seasoned astronaut? Delete this file. Have fun!
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
│ └── favicon.svg
├── src
│ ├── assets
│ │ └── astro.svg
│ ├── components
│ │ └── Welcome.astro
│ ├── layouts
│ │ └── Layout.astro
│ └── pages
│ └── index.astro
└── package.json
To learn more about the folder structure of an Astro project, refer to our 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 |
Feel free to check our documentation or jump into our Discord server.
Overview Coding with AI is helpful for developers to develop their skills, but AI should assist and not overtake the work put into this codebase. For code, developers should be able to understand and explain every line of AI-generated code before submission. Beginners are recommended to not use AI for their first couple issues.
Refine and groom AI output to meet project quality standards Take full ownership of all submitted content regardless of origin Low-effort submissions that appear to be unreviewed AI output may be rejected without detailed feedback until properly refined. This applies to all contributions, but is particularly relevant for AI-assisted work.
Engineers are still responsible for: correctness security testing architecture compliance
Security: Never paste secrets or sensitive data Never expose: API keys production credentials customer data internal proprietary algorithms unreleased IP
Legal: Some AI tool vendors may retain rights to generated output, which could conflict with open source licensing. Research before attempting to use AI.