Class base view django todo app
- Install docker and docker compose.
- Clone the repository.
- Run the docker compose:
docker compose up --build
- Create database:
docker exec backend python manage.py migrate
- Open your browser and go to http://localhost:8000/.
API root endpoint: http://localhost:8000/api/v1/task/
- DRF built-in documentation: http://localhost:8000/drf-docs/
- Swagger documentation: http://localhost:8000/swagger/
- Redoc documentation: http://localhost:8000/redoc/
- Export swagger in json format: http://localhost:8000/swagger/output.json/
For creating five dummy tasks:
run docker-compose exec backend sh -c "python manage.py insert_data"
For running pytest:
run docker-compose exec backend sh -c "pytest ."