Skip to content

ksanvat/example_book_depository

Repository files navigation

=== Simply usage ===

git clone ... <dir>
cd <dir>
docker-compose up -d
...
docker-compose down

=== Build & run dev-mode ===

docker-compose -f docker-compose.dev.yml up --build
...
CTRL+C

=== Build & run test-mode ===

docker-compose -f docker-compose.test.yml up -d --build
...
docker-compose -f docker-compose.test.yml down

=== manage.py ===

  1. Startup {stage}
  2. Run ./util/{stage}/manage.sh command

=== makemigrations (on dev-mode ONLY) ===

  1. Startup dev-mode
  2. Run ./util/dev/manage.sh makemigrations

=== createsuperuser ===

  1. Startup {stage}
  2. Run ./util/{stage}/manage.py createsuperuser

=== Params ===

  • django_app/config/{stage}/.env
    • DB_AUTO_MIGRATE for applying migrations on every startup
    • DB_LOADDATA_SAMPLE for loading sample data on every startup
    • COLLECT_STATIC for collecting static on every startup (test-mode only)

=== TODO ===

  • сделать отправку email'ов асинхронно
  • добавить пагинацию
  • метод search перенести в сущность "книги"
  • добавить тесты

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published