Skip to content

navidagz/discount-code

Repository files navigation

Discount Service

Discount

Future Improvements

  • permission classes
  • brand dashboard apis
    • discount codes list
    • filter on discount fields (user, redeemed, ...)
  • schema and models unit tests

Deployment

Run App

docker-compose up

Documentation URL: http://localhost:8080/docs

Stop App

docker-compose down

Run tests

docker-compose run app bash scripts/run_tests.sh

Local development

Server

To run the server: ./scripts/local_server.sh

Run tests

To run the test: ./scripts/run_tests.sh

Migrations

Run migrations

alembic upgrade head

Autogenerate migration

Alembic can autogenerate the migration file by comparing your SQLAlchemy models and the migration files!

alembic revision --autogenerate -m "description of migration"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors