https://github.com/tk42/bff-python-template
No need to use hygraph(GraphCMS)
https://github.com/tk42/bff-python-template
graphql strawberry
Last synced: 8 months ago
JSON representation
No need to use hygraph(GraphCMS)
- Host: GitHub
- URL: https://github.com/tk42/bff-python-template
- Owner: tk42
- Created: 2022-11-24T21:14:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T23:58:32.000Z (almost 3 years ago)
- Last Synced: 2025-01-04T04:14:34.654Z (9 months ago)
- Topics: graphql, strawberry
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bff-python-template
:snake: Python based
:strawberry: Strawberry based
:seedling: Postgres
:broom: CleanArchitecture## Quickstart
```
docker compose up
```## Migration
```
docker-compose -f docker-compose.migration.yml up
docker exec -it bff-python-template-api-1 bash
```To create a new version (for example, "create tables"),
```
$ alembic revision --autogenerate -m "create tables"
```
To check where we are
```
alembic current
```
To upgrade head / +1
```
alembic upgrade head/+1
```
To downgrade base / -1
```
alembic downgrade base/-1
```## Reference
- [PythonのGraphQLライブラリStrawberryを使ってみた](https://qiita.com/nttpc-aiyo/items/bb946b864e67c2da9a53)
- [DBマイグレーションツールのAlembicの使い方](https://zenn.dev/shimakaze_soft/articles/4c0784d9a87751)