-
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
Nina Bernick
committed
May 31, 2024
1 parent
35aa83b
commit 17c9091
Showing
2 changed files
with
32 additions
and
1 deletion.
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
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,31 @@ | ||
# tail docker container logs | ||
docker compose logs -f dev-app | ||
|
||
libraries: | ||
- pydantic -- object validation | ||
- alembic | ||
- cerbos -- multilanguage general purpose authorization enforcement framework | ||
- strawberry -- most popular GraphQL framework | ||
- sqlalchemy -- most popular ORM in python | ||
- mypy | ||
- FastAPI | ||
- pytest -- dependency injected test framework | ||
|
||
normally mounts to 9009 | ||
debug session mounts to 9008 -- only one at a time | ||
|
||
|
||
schema changes: | ||
- update YAML | ||
- make codegen --> generate types | ||
- make alembic-autogenerate --> generate migration | ||
- make alembic-upgrade-head --> run migration | ||
|
||
|
||
cerbos | ||
derived_roles_common: aware of different roles | ||
policies/sample.yaml: rules of what different roles can do for each action | ||
|
||
pytest | ||
can generate fixtures | ||
conftest.py will automatically load from each directory, tests in any lower directory have access to fixtures |