-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Удалил дэш Сделал возможность писать любой мусор Добавил мэппинг на пользователей Твой ФФ
- Loading branch information
Dyakov Roman
authored
Mar 16, 2023
1 parent
bc1491f
commit a0f177b
Showing
22 changed files
with
237 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
run: | ||
source ./venv/bin/activate && uvicorn --reload --log-config logging_dev.conf marketing_api.routes.base:app | ||
|
||
configure: venv | ||
source ./venv/bin/activate && pip install -r requirements.dev.txt -r requirements.txt | ||
|
||
venv: | ||
python3.11 -m venv venv | ||
|
||
format: | ||
source ./venv/bin/activate && autoflake -r --in-place --remove-all-unused-imports ./marketing_api | ||
source ./venv/bin/activate && isort ./marketing_api | ||
source ./venv/bin/activate && black ./marketing_api | ||
|
||
db: | ||
docker run -d -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust --name db-marketing-backend postgres:15 | ||
|
||
migrate: | ||
source ./venv/bin/activate && alembic upgrade head |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[loggers] | ||
keys=root | ||
|
||
[handlers] | ||
keys=all | ||
|
||
[formatters] | ||
keys=main | ||
|
||
[logger_root] | ||
level=DEBUG | ||
handlers=all | ||
|
||
[handler_all] | ||
class=StreamHandler | ||
formatter=main | ||
level=DEBUG | ||
args=(sys.stdout,) | ||
|
||
[formatter_main] | ||
format=%(asctime)s %(levelname)-8s %(name)-15s %(message)s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from marketing_api.routes.base import app | ||
import uvicorn | ||
|
||
from marketing_api.routes.base import app | ||
|
||
|
||
if __name__ == '__main__': | ||
uvicorn.run(app) |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from .db import ActionsInfo | ||
|
||
|
||
__all__ = ["ActionsInfo"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from .base import app | ||
|
||
|
||
__all__ = ["app"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.