The system for tracking flights from airports across the whole globe.
- JWT authentication
- Admin panel /admin/
- Documentation is located at /api/doc/swagger/ & /api/doc/redoc/
git clone https://github.com/Paul-Starodub/Airport-API-Service
cd Airport-API-Service
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Open file .env.sample and change environment variables to yours. Also rename file extension to .env
- Install PostgreSQL, create DB and User
- Connect DB
- Run:
python manage.py migrate
python manage.py runserver
- You can download test fixture:
python manage.py dumpdata --indent 4 > airport_data.json
Docker should be already installed
docker-compose up --build
- Path to create user: api/users
- Path to login user: api/users/token
- Authorize Bearer
- docker exec -it airport bash
- python manage.py createsuperuser
You can use following:
- superuser:
- Email: [email protected]
- Password: vovk7777
- user:
- Email: [email protected]
- Password: vovk7777
key: Authorize
value: Bearer <token>
- docker exec -it airport bash
- python manage.py test
docker-compose down