iReporter

Build Status Coverage Status Maintainability

iReporter

Corruption is a huge bane to Africa’s development. African countries must develop novel and localised solutions that will curb this menace, hence the birth of iReporter. iReporter enables any/every citizen to bring any form of corruption to the notice of appropriate authorities and the general public. Users can also report on things that needs government intervention

Features(UI).

Getting Started

clone the github repo to your computer:

Prerequisites

Technologies Used

Usage

GH-Pages.

my site is published at https://rhytah.github.io/iReporter/UI/index.htm

API-VERSION2

Tools

Create virtual environment and activate it

$pip install virtualenv
$ virtualenv venv
$ venv\Scripts\activate

Install all the necessary tools by

 $pip insatll -r requirements.txt

Start app server in console/terminal/commandprompt

$python app.py

Test app in terminal

$pytest

Versioning

This is version two "v2" of the API

End Points(Required Features)

| End Point | Functionality | | ——————————————————– | ——————————————— | | POST api/v2/auth/login/ | Login to application | | POST api/v2/auth/signup/ | Register an account | | POST api/v2/red-flags/ | Create a red-flag | | GET api/v2/red-flags/ | Fetch all red-flags | | GET api/v2/red-flags/ | Fetch a red-flag | | PATCH api/v2/red-flags//location | Edit red-flag location | | PATCH api/v2/red-flags//comment | Edit red-flag comment | | PATCH api/v2/red-flags//status | Edit red-flag status | | POST api/v2/interventions/ | Create a intervention | | GET api/v2/interventions/ | Fetch all interventions | | GET api/v2/interventions/ | Fetch a intervention | | DELETE api/v2/interventions/ | Fetch a intervention | | PATCH api/v2/interventions//location| Edit intervention location | | PATCH api/v2/interventions//comment | Edit intervention comment |

Run app in postman

Run in Postman

Heroku hosted link https://rhytah-ireporterv2.herokuapp.com/

Documentation https://documenter.getpostman.com/view/4755480/RzthQB82