Project based on this course and then added some improvements and new features on top of it.
Steps for starting the application after cloning the repository:
npm install
Easiest way:
docker run -d -p 27017:27017 -v /data/db mongo
Or if the instance is running in another machine or another port, you can change the property MONGODB_URL
in the .env
file.
npm run start
The app will be available at localhost:[PORT] where PORT
is whatever value is set in your .env
file.
For production build set NODE_ENV=production
in .env
and execute npm run build
before running npm run start
.