Structuring Africa without corruption and crime
Project is managed with pivotal tracker here
Api is deployed here
- Users can create an account and log in.
- Users can create an incident record.
- Users can edit their incident records.
- Users can view their incident records.
- Users can delete their incident records.
- Ruby
- Rails
- JWT
- Rspec.
- Install Ruby and PostgreSQL on your computer
- Clone this repository using git clone https://github.com/Ochowo/iReporter-BE.git
- Run bundle install to install all dependencies
- Run rails db:migrate
- Run rails s to start the server
- Navigate to localhost:3000 in browser to access the application
- Run test with
bundle exec rspec
/api/auth/signup
- signup/api/auth/login
- login/api/interventions
- create intervention/api/interventions
- get interventions/api/interventions/:id
- get single intervention/api/interventions/:id
- edit intervention/api/interventions/:id
- delete intervention
- Install postman as shown [here]: https://www.getpostman.com/
- Navigate to
https://incident-report-08.herokuapp.com/
in Postman to access the application - Use available endpoints to access app