iReporter is a web application that 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.
Usage
-
On the browser, visit the following url :
For development, you will only need Node.js installed on your environment and the node module create-react-app
to generate a boilerplate version of a React application.
$ node --version
v8.10.0
$ npm --version
3.5.2
You will use npm to install the create-react-app command line interface (CLI) globally (-g).
$ npm install -g create-react-app
Html5, CSS3, ES6, ReactJs
Application Features
- Create an incident record
- Keep track of incident status
A normal user can perform the following :
- Create an incident record
- View his/her posted incidents
- Edit and update an incident.
- Delete an incident.
An admin user can perform the following :
- Update status of a posted incident record
- View all incidents posted.
- View a list of registered users.
- Make a normal user an admin.
- Clone this repository:
`git clone https://github.com/katherine95/ireporter-frontend`
- Change the directory into the project directory:
`cd ireporter-frontend`
- Checkout to
develop
branch:
`git checkout develop`
- Install project dependencies:
`npm install`
- Start the server to run the app in the development mode.
`npm start`
$ npm run build
Some packages usages might change so you should run npm prune
& npm install
often.
A common way to update is by doing
$ git pull
$ npm prune
$ npm install
To run those 3 commands you can just do
$ npm run pull
The app embed for development a static connect server with livereload plugged. So each time you start the app, you get automatic refresh in the browser whenever you update a file.