added small runbook and switched deals for items
This commit is contained in:
parent
e4b93f3103
commit
2f85661a8b
|
|
@ -0,0 +1,10 @@
|
|||
# How to run this project
|
||||
|
||||
Start The API Server:
|
||||
|
||||
pip install -r requirements.txt
|
||||
python ShyBadger/run.py
|
||||
|
||||
Starts server on port 80, calling the root redirects to an unfinished OpenAPI spec site
|
||||
|
||||
See `ShyBadger/test.py` for a usage example of the `BasketService`
|
||||
|
|
@ -10,8 +10,8 @@ class DealsService:
|
|||
def __init__(self) -> None:
|
||||
# placeholder data
|
||||
# promiootion can be read dznamically from db
|
||||
self.promotions["A0001"].append("two_for_one")
|
||||
self.promotions["A0002"].append("ten_percent_off")
|
||||
self.promotions["A0002"].append("two_for_one")
|
||||
self.promotions["A0001"].append("ten_percent_off")
|
||||
|
||||
# deal behavior needs to be programmed an can only be
|
||||
# changed with the rollout of a new version,
|
||||
|
|
|
|||
Loading…
Reference in New Issue