Skip to content

sloppie/digital_matatus_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIGITAL MATATUS SERVER

Introduction

This is the server that acts as the request handler for the DigitalMatatus app.

Setup

Installing Requirements

Environment Requirements

  • NodeJS runtime
  • MongoDB database

Installing NodeJS

Follow the instructions for installing NodeJS on your specific platform from the NodeJS website

Installing MongoDB

Follow the procedure for installing the MongoDB data base here

Setting up the server

Creating the database

  1. Open a mongo shell (run mongo on the terminal)
  2. Run the following commands:
  use digital_matatus
  db.createCollection("user")
  db.createCollection("report")
  db.createCollection("routes")

Complete the setup

  1. cd into the root directory where the server is contained
  2. run the following command node index
  3. perform a GET request to the '/api/routes' route of the server to finish set up

Run the server

  1. Run node index in the root directory of the server

About

Server to the digital_matatus app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published