-
Setup Node and npm using nvm
-
Install nvm
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.1/install.sh | bash -
Install node and npm
$ nvm install -
Install yarn
$ npm install -g yarn@1.22.5
-
-
Install dependencies
$ yarn install
-
Setup MongoDB 4.4.x
-
Update configurations
Copy
./.env.templateto./.envand update variables as required.
-
To run the application use command
yarn run start -
For local development, use
yarn run watchThis uses nodemon to watch files for changes and automatically restarts the Node.js application when changes are detected.
-
For linting changing, use
yarn run lint