https://airtech-api-app.herokuapp.com/
This project automates the flight booking system
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To install this project you need the following framework and tools
- Python3
- Postgres
- Memcached
These Steps would help you install the project dependent packages and run the application. The project has two sections FrontEnd and BackEnd, the instructions here is structure to setup both section interdependently.
- Clone the repository and CD into the repository directory
- Ensure that you have created a database for this project
- Create a .env file
- Update the new .env file with required data
- create and activate a virtual environment. Here is an example using Pipenv: run
pipenv install
- Start shell
pipenv shell
- Run migration
python manage.py migrate
- Start the app via Django
python manage.py runserver
- create a database in postgres and make the connection via the environment variable
- Start the app via Django
python manage.py runserver
- Open a HTTP client (e.g. Postman)...:
- Make a
POST
request to the endpointv1/api/login
with Headers:
Authorization: {jwt-token}
- Make a
- Get and use the token value in the response object for all subsequent requests. Under the Authorization menu,
- TYPE is
Bearer Token
- Token is {token value}
- TYPE is
pytest
- email: admin@test.com
- password: password123
- Django
- Djangorestframework
- Postgres
- Onengiye Richard (klevamane)
- Onengiye Richard (klevamane)