An API for managing airport operations written on DRF
Install PostgreSQL and create db
git clone https://github.com/Morphin20th/airport-api
cd airport-api
python3 -m venv venv
Linux/Mac:
source venv/bin/activate
Windows:
venv\Scripts\activate
.env:
pip install -r requirements.txt
set SECURITY_KEY=<key>
set POSTGRES_DB=<db_name>
set POSTGRES_DB_PORT=<db_port>
set POSTGRES_USER=<db_user>
set POSTGRES_PASSWORD=<db_password>
set POSTGRES_HOST=<db_host>
set PGDATA=<path>
python ./manage.py migrate
python ./manage.py runserver
docker-compose build
docker-compose up
docker-compose exec airport python manage.py loaddata initial_data.json
- create user via /api/user/register/
- get access token via /api/user/token/
- JWT authentication
- Admin panel: /admin/
- Documentation: Swagger: /api/doc/swagger/ ; Redoc: /api/doc/redoc/
- Managing orders and tickets: Users can create orders.
- Creating airplanes with airplane types
- Creating routes with airports
- Creating flights with crew
- Filter airplanes by name and type
- Filter routes by source and destination
- Filter flights by routes, airplanes, departure dates
- Upload images to airplanes: api/airplanes/id/upload-image/