- Understands how to:
- Write api's.
- Send query requests to db using django orm.
- Optimize ORM-Query using
.prefetch_related()
,.select_related()
. - Write tests using django tests.
- Understands how to:
- Create and set-up Dockerfile.
- Load image from dockerhub(Postgresql) + set-up.
- Run docker-compose and run commands inside containers.
- Understands how to create:
- Collections.
- Requests.
- Example of responses
- Environment.
- Lang. - Python3.11
- Framework - Django(4.2.1) + Django-Rest-Framework(3.14.0)
- DB - PostgreSQL(14.1)
- Other Libraries:
- django-rest-passwordreset(1.3.0)
- djangorestframework-simplejwt(5.2.2)
- django-filter(23.2)
- API Platform - Postman(9.31.28)
3. DB-Schema
# Copy project
git clone https://github.com/RomanShyshcenko/drf_shop.git
# Add your .env set-up to .env_example and rename file to .env
# Build docker-compose
docker-compose build
# Create and migrate migrations
docker-compose run --rm web sh -c "python manage.py makemigrations"
docker-compose run --rm web sh -c "python manage.py migrate"
# Run
docker-compose up