https://github.com/code4mk/fastapi-graphql-strawberry-template
Production ready fastapi graphql template with strawberry
https://github.com/code4mk/fastapi-graphql-strawberry-template
Last synced: 6 months ago
JSON representation
Production ready fastapi graphql template with strawberry
- Host: GitHub
- URL: https://github.com/code4mk/fastapi-graphql-strawberry-template
- Owner: code4mk
- Created: 2025-01-01T21:18:14.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-05-01T23:51:53.000Z (8 months ago)
- Last Synced: 2025-05-31T16:49:22.556Z (7 months ago)
- Language: Python
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Database migration process with Alembic
Alembic is a database migration tool for SQLAlchemy.
### revision (migration)
you can use the following command to create a new migration file.
```bash
alembic revision --autogenerate -m "initial project"
```
this will create a new migration file in the `alembic/versions` directory.
### upgrade (migrate)
you can use the following command to migrate the database.
```bash
alembic upgrade head
```
### Running the Project
To start the application:
```bash
./run-project.sh
```
The application will be available at [http://127.0.0.1:8000](http://127.0.0.1:8000) in your browser.
The graphql playground will be available at [http://127.0.0.1:8000/graphql](http://127.0.0.1:8000/graphql) in your browser.