https://github.com/ignema/fastgraph
Sandbox project to experiment with a GraphQL API using FastAPI & Strawberry
https://github.com/ignema/fastgraph
fastapi graphql mkdocs-material prisma python strawberry-graphql
Last synced: about 2 months ago
JSON representation
Sandbox project to experiment with a GraphQL API using FastAPI & Strawberry
- Host: GitHub
- URL: https://github.com/ignema/fastgraph
- Owner: Ignema
- Created: 2022-02-16T13:42:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-14T21:14:30.000Z (about 4 years ago)
- Last Synced: 2025-03-01T08:23:46.232Z (over 1 year ago)
- Topics: fastapi, graphql, mkdocs-material, prisma, python, strawberry-graphql
- Language: Python
- Homepage: https://ignema.github.io/fastgraph
- Size: 482 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL with FastAPI ☁️
Sandbox project to experiment with a GraphQL API using FastAPI & Strawberry
## Installation
First thing that we need to do is clone the repository like so:
git clone https://github.com/Ignema/fastgraph.git
### Building the project from source
To run this project you'll need Python installed on your system. Make sure it's version 3.10 or above.
// Install dependencies
cd fastgraph
pipenv install
// Initialze SQLite database with Prisma
pipenv shell
prisma db push
// Run the server
uvicorn src.main:app --reload
### Running the project with a container
You can either pull the image from docker hub or build it yourself. To get the image from the cloud use the following command:
docker pull ignema/fastgraph
To build it locally run the following command:
docker build -t ignema/fastgraph .
Now you can run the project in either cases like so:
docker run -d --name fastgraph -p 8080:8080 ignema/fastgraph