{"id":21186751,"url":"https://github.com/emmanuelaaron/ireporter-database","last_synced_at":"2025-03-14T20:18:33.951Z","repository":{"id":39843902,"uuid":"166806826","full_name":"Emmanuelaaron/iReporter-Database","owner":"Emmanuelaaron","description":"This is an API built with Python flask and it enables users to report criminality in their respective areas of residence","archived":false,"fork":false,"pushed_at":"2022-12-08T01:33:40.000Z","size":101,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-01-21T13:06:50.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Emmanuelaaron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-21T11:59:58.000Z","updated_at":"2025-01-01T07:11:30.000Z","dependencies_parsed_at":"2022-09-14T03:00:53.939Z","dependency_job_id":null,"html_url":"https://github.com/Emmanuelaaron/iReporter-Database","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emmanuelaaron%2FiReporter-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emmanuelaaron%2FiReporter-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emmanuelaaron%2FiReporter-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emmanuelaaron%2FiReporter-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Emmanuelaaron","download_url":"https://codeload.github.com/Emmanuelaaron/iReporter-Database/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243639558,"owners_count":20323511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T18:25:49.486Z","updated_at":"2025-03-14T20:18:33.930Z","avatar_url":"https://github.com/Emmanuelaaron.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iReporter-Database\n[![Build Status](https://travis-ci.org/Emmanuelaaron/iReporter-Database.svg?branch=develop)](https://travis-ci.org/Emmanuelaaron/iReporter-Database)\n[![Coverage Status](https://coveralls.io/repos/github/Emmanuelaaron/iReporter-Database/badge.svg?branch=develop)](https://coveralls.io/github/Emmanuelaaron/iReporter-Database?branch=develop)\n[![Maintainability](https://api.codeclimate.com/v1/badges/978f3218d91b66da74e1/maintainability)](https://codeclimate.com/github/Emmanuelaaron/iReporter-Database/maintainability)\n\nCorruption is a huge bane to Africa’s development. African countries must develop novel and localised solutions that will curb this menace, hence the birth of iReporter. 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\n\n## Getting started\nYou can clone this [repo](https://github.com/Emmanuelaaron/iReporter-Database.git) on your local machine or checkout the user-interface on [gh-pages](https://emmanuelaaron.github.io/iReporter/UI/temps/start_page) and the app is hoted on [heroku](https://ireporter-d-b.herokuapp.com/api/v2)\n\n### Prerequisites\nInstall [python](https://www.python.org/downloads/release/python-371/) on your local machine\n\n### Installing\nClone the this repo on your local machine\n```\n$ git clone https://github.com/Emmanuelaaron/iReporter-Database.git\n```\ncd into the cloned directory, install the virtual environment and activate, checkout to the most stable branch and install all the dependences.\n```\n$ cd iReporter-database\n$ pip install virtualenv\n$ virtualenv venv\n$ source venv/Scripts/activate\n$ git checkout develop\n$ pip install -r requirements.txt\n$ python run.py\n```\n* copy the Url it into postman and put to run any endpoint of your preference in the table below with the url prefix ('/api/v2') for each endpoint.\n\nHTTP Method | Endpoint | Functionality | Parameters \n------------|----------|---------------|------------\nPOST | /auth/signup | User is able to signup | None\nPOST | /auth/login | User is able to login | None\nPOST | /incidence | Creates incidences| None\nGET | /interventions| Gets all interventions| None\nGET | /red-flags | Gets all red flags | None\nGET | /interventions/\u003cint:incident_id\u003e | Gets a specific intervention | incident_id \nGET | /red-flags/\u003cint:incident_id\u003e | Gets a specific red flag | incident_id\nDELETE | /interventions/\u003cint:incident_id\u003e | Deletes a specific intervention | incident_id\nDELETE | /red-flags/\u003cint:incident_id\u003e | deletes a specific red flag | Flag_id\n\n## Running Tests\nInstall pytest, activate the virtual environment and then run the tests\n```\n$ pip install pytest\n$ pytest\n```\nYou can checkout the code coverage by using the code below\n```\n$ pytest --cov=.\n```\nMake sure your virtual environment is activated\n\n## Deployment\nThe application is hosted on [heroku](https://ireporter-d-b.herokuapp.com/api/v2)\n\n## Tools Used\n* [python](https://www.python.org/downloads/release/python-371/)\n* [Flask](http://flask.pocoo.org/) Micro web framework for python\n* [pip](https://pip.pypa.io/en/stable/) package installer for python\n* [Virtualenv](https://virtualenv.pypa.io/en/stable/) Tool used to created isolated programs for python\n* [Postgresql](https://www.postgresql.org/docs/11/index.html)\n\n## Built with\nSo far this application has been built with\n* [Python](https://www.python.org/downloads/release/python-371/)\n* [Flask](http://flask.pocoo.org/)\n* [Postgresql](https://www.postgresql.org/docs/11/index.html)\n\n\n## Contributions\nTo contribute to this project please create a branch off the develop after which you will create a pull request before it is merged back.\n\n## Aurthor\nBy Emmanuel Isabirye\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmanuelaaron%2Fireporter-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmanuelaaron%2Fireporter-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmanuelaaron%2Fireporter-database/lists"}