To get this project running on your machine, follow the steps below:
- Visit Nodejs.org and download the latest LTS node.js
- Install Node.js on your machine and make sure it is added to path.
- Open your Command Prompt or Terminal and run the commands below:
node --version
This will display v18.16.0 or similar.
npm --version
This will display 9.5.1 or similar.
NB: if the above command does not work, reinstall Node.js by following this tutorial
- Visit MongoDB.com and download the latest LTS MongoDB
- Install MongoDB on your machine and make sure it is added to path.
- Open your Command Prompt or Terminal and run the commands below:
mongo --version
This will display MongoDB shell version v6.0.4 or similar.
NB: if the above command does not work, reinstall Node.js by following this tutorial
Optionally, you can install MongoDB Compass, a GUI client for Mongo DB by following this tutorial
To setup the project running, navigate to the project directory via Command Prompt or Terminal and run the command below:
npm install
Rename the .env.example at the root directory to .env
Run the command:
npm run dev
Run the command:
npm run start
Prettier is the code formatter used, to run the code formatter, execute the following command on the root directory.
npm run prettier
The code linter used in this project is ESLint, to run the code linter, execute the command below.
npm run lint
This project runs on localhost. To view this Application run the server and visit the HOST:PORT
Rename the .env.example at the root directory to .env
Run the command:
npm run dev
Visit localhost:3000 for full API documentation
Run the command:
npm run start
Visit HOST:3000 for full API documentation