- Clone the project.
- From the project's root directory, run
npm installto install dependencies. - From the project's root directory, run
npm run devto host the development environment.localhost:4321is the default binding.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Install dependencies |
npm run dev |
Start 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 check |
Check your project for errors |
npm run fix |
Run ESLint and format code with Prettier |
npm run astro ... |
Run CLI commands like astro add, astro preview |