This is a simple backend implementation of an online marketplace using REST architecture
- Install all the dependencies.
- Create a database in mongodb and put the url in
app.js
file in the suggested format. - Create env variables by the name
MONGO_ATLAS_USER
andMONGO_ATLAS_PW
to store the username and password of your mongodb username and password respectively. - If you are using
nodemon
to run your server, you can createnodemon.json
file in the root directory with the env variables. - Run the server using
nodemon server.js
. - Now you can use Postman or any other tool to shoot requests at the server.