# add local environment variables
$ cp .env-default .env
$ vim .env
# use correct node version
$ nvm use
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production
$ npm run build
# preview static project
$ npm run previewAll 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 ./output/ |
npm run preview |
Preview your build locally, before deploying |
npm run lint |
Run linters for JS, style & prettier |
npm run lintfix |
Fix lint errors |
Check out the deployment documentation for more information.