Skip to content

danial29rus/booking_service_finall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7b4c166 · Mar 3, 2023

History

26 Commits
Feb 13, 2023
Feb 26, 2023
Feb 24, 2023
Feb 11, 2023
Feb 26, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 26, 2023
Feb 26, 2023
Feb 24, 2023
Feb 26, 2023
Feb 11, 2023
Mar 3, 2023
Feb 22, 2023
Feb 23, 2023

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