An open API service indexing awesome lists of open source software.

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)

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)