Install:
npm run i
Srart server (default address is localhost:3001/api
):
npm run start
env:
- MONGODB_CONNECT - default is 'mongodb://localhost:27018/demoDB'
- PORT - defautl is 3001
Example with using env:
MONGODB_CONNECT='mongodb://localho:27017/demoDB' PORT=8080 npm run start
Install:
npm run i
Start dev server (will be available on localhost:3000
):
npm run start
Build production version (can be accessable from localhost:3001
):
npm run build