iReporter

Project Description
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
- Users can create an account and log in.
- Users can create a red-flag record (An incident linked to corruption).
- Users can create intervention record (a call for a government agency to intervene e.g repair bad road sections, collapsed bridges, flooding e.t.c).
- Users can edit their red-flag or intervention records.
- Users can delete their red-flag or intervention records.
- Users can add geolocation (Lat Long Coordinates) to their red-flag or intervention records.
- Users can change the geolocation (Lat Long Coordinates) attached to their red-flag or intervention records.
- Admin can change the status of a record to either under investigation, rejected (in the event of a false claim) or resolved (in the event that the claim has been investigated and resolved).
Hopeful features 🔥 🔥
- Users can add images to their red-flag or intervention records, to support their claims.
- Users can add videos to their red-flag or intervention records, to support their claims.
- The application should display a Google Map with Marker showing the red-flag or intervention location.
- The user gets real-time email notification when Admin changes the status of their record.
- The user gets real-time sms notification when Admin changes the status of their record.
How to Use
- Clone this repository to your local machine
git clone https://github.com/meetKazuki/iReporter
- Install dependencies
npm install
- Run
npm run dev-start
to start the application
Testing
Manual testing
- Install Postman to test the endpoints manually.
- GET /api/v1/red-flags
- GET /api/v1/red-flags/:id
- POST /api/v1/red-flags
- PATCH /api/v1/red-flags/:id
- DELETE /api/v1/red-flags/:id
Automated test
Run npm test
to test all the endpoints.
About this project
You can track the project’s progress on Github and PivotalTracker. The UI templates are hosted on GH-Pages. You can also follow me on Twitter😉.