This project is a practical example of the HTML Driven frontend architecture covered in (TODO).
- Enables the use of Node.js. Check the .node-version file in the root directory for the version.
- Install dependencies with
yarncommand. - Start the development server with the
yarn devcommand and open http://localhost:4321/ in your browser.
| Command | Action |
|---|---|
yarn |
Installs dependencies |
yarn dev |
Starts local dev server at localhost:4321 |
yarn build |
Build your production site to ./dist/ |
yarn preview |
Preview your build locally, before deploying |
yarn type-check |
Check types by astro check and tsc |
yarn lint |
Check code by ESLint |
yarn fix |
format code by Prettier and ESLint |
yarn astro ... |
Run CLI commands like astro add, astro check |