- Make sure you have NodeJS installed on your system. The recommended version is the current LTS (24) but newer ones should work too.
- Make sure you have the Yarn package manager installed:
npm install --global yarn - You can now navigate to the root of the project and install the dependencies using
yarn install - You're ready to go! Simply run
yarn devand browse http://localhost:4321
When developing in dev mode, HMR (Hot Module Replacement) will be enabled and allows you to see all of your changes INSTANTLY when you save any file.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
yarn install |
Installs dependencies |
yarn dev |
Starts local dev server at localhost:4321 |
yarn build |
Build production site to ./dist/ |
yarn preview |
Preview build locally, before deploying |
yarn astro ... |
Run CLI commands like astro add, astro check |
yarn astro -- --help |
Get help using the Astro CLI |
Feel free to check Astro's documentation.