Dummy CRUD API for payment portal
Instructions for installing and running the dummy API:
To create local DB:
- Install MongoDB Community from https://docs.mongodb.org/manual/installation/
- From a Terminal, start MongoDB (./bin/mongod)
- From another Terminal, start the Mongo Shell (./bin/mongo)
- In the Mongo Shell, create a db called "paymentPortal" by typing: use paymentPortal
- You can close the Mongo Shell
If you use an external Mongo DB:
- go to server.js and change this line: mongoose.connect('mongodb://localhost:27017/paymentPortal'); and replace the mongodb:// url for the external DB.
To install the dummy API:
- In a new Terminal, cd to the directory containing package.json
- run "npm install"
To run the DB:
- In a terminal, go to MongoDB install directory
- run "./bin/mongod"
To run the API:
- In a terminal, go to the directory containing server.js
- run "npm start"
- If you make changes to the code, you have to restart the API.