-
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 [email protected]
-
-
Install dependencies
$ yarn install
-
Setup MongoDB 4.4.x
-
Update configurations
Copy
./.env.template
to./.env
and update variables as required.
-
To run the application use command
yarn run start
-
For local development, use
yarn run watch
This 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