- Install Docker and docker-compose
- Rename .env.example to .env and fill values
- Run command
docker-compose build && docker-compose up -d
- Apply migrations:
docker-compose exec app python manage.py migrate
- (Optional): Create superuser
- Enter address
localhost:8000/docs/swagger
in your browser to test API - New user (not superuser) will be without permissions. Get token from
/auth/
route, click to Authorize in swagger UI. EnterToken <your_token>
and use API
I decided to remove Car brand from UserCar model because we can get it from Car model.
And I decided to leave authorization by username (by default). Whether to make this decision or not depends on you