A platform where citizens can report corruption cases or government interventions
It provides a platform where users can report corruption issues to the authorities or report interventions to public projects
As a User, you can:
- Create an account
- Log in into the account
- Create a red-flag or intervention
- View all his or her interventions/ red-flags
- View a specific red-flag or intervention
- View the status of a red-flag or intervention
- delete a red-flag or intervention
- modify an inervention or red-flag
- Add an image to an intervention or red-flag
- Add a video to an intervention or a red-flag
- Add a location or a google mapmarker to a red-flag or an intervention
As an admin, you can
- view all users red-flags and interventions
- change the status of all red-flags and interventions
- API
- python
- flask
Download option
- Go to iReporter on github
- Download the zip file and extract it
- Right click on the folder and open with terminal on linux or bash
Cloning option
- On your favorite terminal
- cd to where you want the repo to go
- Run the following command:
git clone https://github.com/lawrenceChege/iReporter.git
- Then:
cd iReporter
Create virtual environment
python3 -m venv env
- or alternatively
virtualenv env
Activate virtualenv
on linux systems
source env/bin/activate
on windows machines
env\Scripts\activate
Install dependencies
using pipenv
- install pipenv using pip
pip install pipenv
- install dependencies
pipenv install
using requirements.txt
pip install -r requirements.txt
Run the App
to run the app do
flask run
to run tests do
pytest -v
Test | API-endpoint | HTTP-Verb |
---|---|---|
Users can create new incident | /api/v2/incidents/ | POST |
users can view all their incidents | /api/v2/incidents/ | GET |
users can view a incident | /api/v2/incidents/int:incident_id/ | GET |
users can modify their incident | /api/v2/incidents/int:incident_id/ | PUT |
users can delete a incident | /api/v2/incidents/int:incident_id/ | DELETE |
Users can modify a new location | /api/v2/incidents/int:incident_id/location | PATCH |
users can modify a comment | /api/v2/incidents/int:incident_id/comment | GET |
admin can modify the status | /api/v2/answers/int:incident_id/status | PUT |
Lawrence Chege
Andela Kenya
Bootcamp-cohort35-comrades
Tribeles-Team Endles-Team