mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
eb4effb6b7
To avoid confusion I seperated the `npm run build` and the `npm run dev` commands, beginners might get confused by each command being listed in the same list, thinking they need to run `npm run build` before Astro works properly. Add `npm run preview` commands to all examples where they are missing
980 B
980 B
Astro Starter Kit: Portfolio
npm init astro -- --template portfolio
🧑🚀 Seasoned astronaut? Delete this file. Have fun!
🧞 Commands
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:3000 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
👀 Want to learn more?
Feel free to check our documentation or jump into our Discord server.