Basic API to fetch products from a store. This API is built using Node.js, Express.js and MongoDB.
Deployed on Render: https://storeapi-hjc5.onrender.com/
Documentation for the API can be found at https://documenter.getpostman.com/view/25069159/2s93RUus4n
- Clone the repository
- Run
npm install
to install the dependencies - Create a
.env
file in the root directory and add the following environment variables:
MONGO_URI=<your_mongo_uri>
PORT=<your_port>
- Run
popluate.js
to populate the database with products
node populate.js
- Run
npm start
to start the server
API will be running on
http://localhost:<your_port>
by default