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.
- Users can create an account and log in.
- The users should be able to make maintenance or repairs request.
- An admin should be able to approve/reject a repair/maintenance request.
- The admin should be able to mark request as resolved once it is done.
- The admin should be able to view all maintenance/repairs requests on the application
- The admin should be able to filter requests
- The user can view all his/her requests
Endpoint | Functionality |
---|---|
POST /auth/signup | Register a user |
POST /auth/login | Login a user |
GET /users/requests | Fetch all the requests of a logged in user |
GET /users/requests/ | Fetch a request that belongs to a logged in user |
POST /users/requests | Create a request. |
PUT /users/requests/ | Modify a request. |
GET /requests/ | Fetch all the requests. |
PUT /requests//approve | Approve request |
PUT /requests//disapprove | Disapprove request |
PUT /requests//resolve | Resolve request |
Clone the repo to your local machine
- Run
npm install
to install all dependencies - Run
npm start
to start up server - Run
npm run test
for testing
https://trackman.herokuapp.com
Adebayo Ilerioluwa