Skip to content

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 g…

Notifications You must be signed in to change notification settings

ernesthenry/iReporterAPI

Repository files navigation

Build Status Coverage Status Maintainability

iReporterAPI

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. iReporter is an App that is aimed at solving this.

This repository contains my code for the Andela iReporter Challenge 2.

Languages and Tools Used

Getting Started

Clone the project

git clone https://github.com/ernesthenry/iReporterAPI.git

Installation

create a virtual environment:

virtualenv venv

Activate the virtual environment:

 source venv\bin\activate

Install requirements from the requirements.txt file:

pip install -r requirements.txt

Run the Application:

python app.py 

Run Tests

pytest

API Endpoints

REQUEST TYPE URL DESCRIPTION
POST /api/v1/red-flags/create Create a red flag record
GET /api/v1/red-flags Get all red flag records
GET /api/v1/red-flags/int:flag_id Get specific red flag record
DELETE /api/v1/red-flags/int:flag_id Delete a specific red flag record
PATCH /api/v1/red-flags/int:flag_id/comment Update comment of a specific red flag record
PATCH /api/v1/red-flags/int:flag_id/location Update location of a specific red flag record

Author of the codebase

Kato Ernest Henry

Deployment

Application is deployed using Heroku.

checkout it on HEROKU

About

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 g…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages