🐤 Base setup for a Nest.js back-end.
-
Install node modules:
npm install
-
Start the server in dev mode:
npm run dev
-
Start the server in production mode:
npm run build npm start
There are lots of npm scripts at your disposal during local development. Here are some of the more important ones:
Script | Description |
---|---|
npm run dev | Starts the local dev server. |
npm run build | Builds the production bundle. |
npm start | Starts the production server. |
npm test | Run all tests. |