Built for easy commute of drivers in Nigeria
## Table of Contents
- Description of features
- LOGIN SUPERAGENT
- LOGIN AGENT
- CREATE AGENT
- UPDATE AGENT
- DELETE AN AGENT
- DEACTIVATE AGENT
- ACTIVATE AGENT
- CREATE AGENT
- GET ALL AGENTS
- GET ALL DRIVERS
- GET SINGLE AGENT
- GET SINGLE DRIVER
- CREATE TRANSACTION
- GET ALL transactions
- GET ALL TRANSACTIONS BY EACH AGENT
- GET ALL TRIPS BY A DRIVER
## Vision
IGRP is an application that aids transport community carry out their daily tranasction and charges for different vehicles.
## Setup
### Dependencies
list of libraries, tools, and technologies used.
- express.js - Fast, unopinionated, minimalist web framework for Node.js
- Node.js - A JavaScript runtime environment
- MongoDB - For database services
- A package manager - [NPM
### Getting Started
- clone the repo - `
github.com`
- Navigate to the project directory and open on any editor, VS Code preferably.
- Install the project dependencies by running `npm Install`
- After installation, to start the server run `npm start`
# Description of features
## LOGIN SUPERAGENT
A superagent has been automatically created, to login get the phone number and password from the authorized person or check the environment variable.
To get to this endpoint, provide the phone number and password
```
POST REQUEST
{
"phoneNumber" : "superagent number",
"password" : "superagent password"
}
igrp-transports.herokuapp.c…
```
## LOGIN AGENT
Only agents created by the superagent can be permitted to login. Provide the agents phone number and the password assigned to the agent.
```
POST REQUEST
{
"phoneNumber" : "agent number",
"password" : "agent password"
}
igrp-transports.herokuapp.c…
```
## CREATE AGENT
Only super agents are permitted to create agents. To create an agent, the following are provided but only phone number is compulsory.
```
POST REQUEST
{
"phoneNumber": "agent number",
"password": "agent password",
"fullname": …