iReporter enables any/every citizen to bring any form of corruption to the notice of appropriate authorities and the general public.
The instructions below will guide you on how to run a copy of the project locally.
You need to have node.js
installed on your machine. Other node
packages will be installed with npm install
Clone the repo to your machine and run npm install
in your terminal
npm start
To run the tests type npm run test
in your terminal.
GET api/v1/red-flags
POST api/v1/red-flags
{
"title": "Test red-flag",
"location": "Test location",
"comment": "Test comment",
}
GET api/v1/red-flags/:id
GET api/v1/red-flags/1
PATCH api/v1/red-flags/:id/location
PATCH api/v1/red-flags/1/location
{
"location":"6.5244° N, 3.3792° E"
}
PATCH api/v1/red-flags/:id/comment
PATCH api/v1/red-flags/1/comment
{
"comment": "This new comment replaces the old one"
}
DELETE api/v1/red-flags/:id
DELETE api/v1/red-flags/1
POST api/v1/auth/signup
{
"email": "[email protected]",
"firstname": "firstname",
"lastname": "lastname",
"othernames": "Othernames",
"phonenumber": "12345678910",
"password": "pass",
"username": "username"
}
POST api/v1/auth/login
{
"email": "[email protected]",
"password": "pass"
}
- https://youngestdj.github.io/iReporter - template url
- https://jessam-ireporter.herokuapp.com - server url
- https://www.pivotaltracker.com/n/projects/2226817 - Pivotal tracker board