This is the server that acts as the request handler for the DigitalMatatus app.
- NodeJS runtime
- MongoDB database
Follow the instructions for installing NodeJS on your specific platform from the NodeJS website
Follow the procedure for installing the MongoDB data base here
- Open a
mongo
shell (runmongo
on the terminal) - Run the following commands:
use digital_matatus
db.createCollection("user")
db.createCollection("report")
db.createCollection("routes")
cd
into the root directory where the server is contained- run the following command
node index
- perform a
GET
request to the'/api/routes'
route of the server to finish set up
- Run
node index
in the root directory of the server