Maintenance Tracker App is an application that provides users with the ability to reach out to operations or repairs department regarding repair or maintenance requests and monitor the status of their request.
https://ssewilliam.github.io/maintenanceTracker/
REQUEST | ROUTE | ACTION / FUNCTIONALITY |
---|---|---|
POST | /auth/signup | Registers a user |
POST | /auth/login | Login a user |
GET | /users/requests | Fetch all the requests of a logged in user |
GET | /users/requests/:requestId | Fetch a request that belongs to a logged in user |
POST | /users/requests | Creates a request |
PUT | /users/requests | Modify a request |
GET | /requests/ | Fetches all requests for admin users only |
PUT | /requests/:requestId/approve | Approve a request |
PUT | /requests/:requestId/disapprove | Disapprove a request |
PUT | /requests/:requestId/resolve | Resolve a request |
GET | /users | Fetches all users |
- Flask a Python Framework
https://mtracker-with-database.herokuapp.com/
https://maintenancetrackerapi1.docs.apiary.io
-
Clone this repository to your computer using
$ git clone https://github.com/ssewilliam/maintenance-tracker-with-database.git
-
Install virtualenv, create and activate anew enviromment inside this folder you've cloned
$ virtualenv maintanance-tracker-env
$ source maintanance-tracker-env
-
Install all project dependencies using
pip3 install -r requirements.txt
-
Install postgres on you computer and have access to it
sudo apt-get install postgresql postgresql-contrib
sudo -i -u postgres psql
-
create a new database and gain access to it with anew user
CREATE DATABASE trackerdb;
-
To launch the application, run the following command in your terminal
python run.py
-
To run tests on the application, run the following command in your terminal
nosetests
SSERUBIRI WILLIAM