- Create a mongodb cluster and get its Connection URI.
The connection uri must be urlencoded, i.e. if the username or password or cluster name has special characters in it, then it must be encoded. For making lives easier a encoder.js file is provided just run it using the following command.
node encoder
Enter the string(username, password etc.) that needs to be urlencoded and then paste it to its respective position in the Connection URI.
- Create a .env file in the root directory and add the following parameters
PORT=<AnyPortNumberYouWant>
MONGO_URI=<ConnectionURIStringForMongoDB>
- Clone this repostiory
git clone https://github.com/BiJu-02/UnityLabsInternAssignment.git
- Run the following commands by opening the terminal in root directory of the project (make sure node and npm are installed)
npm i
node index
Please do provide feedback on the project.