Skip to content

danial29rus/booking_service_finall

Repository files navigation

Postgres в docker

docker run --name booking_db -p 7777:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres -d postgres:15

Alembic миграции

Создать папки для миграций: alembic init migrations Создать миграцию: alembic revision --autogenerate -m "Initial" Осуществить миграцию: alembic upgrade head

FAKE DB FOR TEST

docker run --name postgres -p 6000:5432 -e POSTGRES_USER=postgres1 -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres -d postgres:15

Запуск тестов

pytest -v --cov=app tests/ -W ignore::DeprecationWarning

TODO

  • Dockerfile, docker-compose
  • Redis, Celery
  • Pytest
  • Добавить фронт
  • Deploy

DOCKER

image

Pytest

Цель -> 100% по эндпоинтам

image

About

Booking Service on Fastapi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages