Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Maintenance Application Tracker to Master Branch #28

Open
wants to merge 156 commits into
base: master
Choose a base branch
from

Conversation

RuthNjeri
Copy link
Owner

@RuthNjeri RuthNjeri commented Jun 29, 2018

Maintenance-Tracker-Application

PROJECT FEATURES

  1. Users can create an account and log in.
  2. The users should be able to make maintenance or repairs request.
  3. An admin should be able to approve/reject a repair/maintenance request.
  4. The admin should be able to mark request as resolved once it is done.
  5. The admin should be able to view all maintenance/repairs requests on the application.
  6. The admin should be able to filter requests.
  7. The user can view all his/her requests.
HTTP Method URI Action
GET /api/v2/requests/ Admin retrieve list of requests
PUT /api/v2/auth/admin Admin upgrade normal user to admin
PUT /api/v2/requests/[requestId]/resolve Admin resolve request
PUT /api/v2/requests/[requestId]/approve Admin approve request
PUT /api/v2/requests/[requestId]/disapprove Admin disapprove request
GET /api/v2/requests/[request_id] Retrieve a request
POST /api/v2/users/requests Create a new request
GET /api/v2/users/requests Get all user requests
PUT /api/v2/requests/[request_id] Update an existing request
DELETE /api/v2/requests/[request_id] Delete an existing request
POST /api/v2/auth/signup/ Register a user
POST /api/v2/auth/login/ Log in User
GET /api/v2/signout Signout User

Testing the Endpoints

1.Clone the repository git clone https://github.com/RuthNjeri/Maintenance-Tracker-Application.git

2.Create a virtual environment virtualenv project-env

3.Activate the virtual environmentsource project-env/bin/activate and navigate to the application root folder /Maintenance-Tracker-Application

4.Install the requirements pip install -r requirements.txt

5.Create a database named maintenanceapp using postgresql

6.Run the application python run.py

7.Test the endpoints using Postman

Testing using Unittest

1.Clone the repository git clone https://github.com/RuthNjeri/Maintenance-Tracker-Application.git

2.Create a virtual environment virtualenv project-env

3.Activate the virtual environmentsource project-env/bin/activate and navigate to the application root folder /Maintenance-Tracker-Application

4.Install the requirements pip install -r requirements.txt

5.Create a database named maintenanceapp using postgresql

6.Test the application using the command pytest

##Pivotal Tracker Stories
#2173304

Ruth Waiganjo and others added 30 commits May 21, 2018 18:48
…s-157743348

#157743348 Add The Page for the Admin to Respond to Requests
…743272

 #157743272 A Page For The User To Create Requests
#157871607 Hosted the UI pages on Github.io
RuthNjeri and others added 30 commits June 6, 2018 16:58
#158128981 Set up database and connection to database
…28651

#158128651 User sign up endpoint with jwt and sign in endpoint with tests
#158184051 add migrations file, edit http error code,validate login and sign up
[feature #158129043] Add requests endpoints and tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant