obytes / FastQL

⚙️ Full stack, Modern Web Application Generator. ✨ Using FastAPI, GraphQL, PostgreSQL as database, Docker, automatic HTTPS and more. 🔖
https://www.obytes.com/blog/getting-started-with-graphql-in-python-with-fastapi-&-ariadne
MIT License
131 stars 20 forks source link
ariadne docker fastapi graphene graphql postgresql python rabbitmq

FastQL - FastAPI GraphQL Playground 🔧

fastql

Generate a FullStack playground using FastAPI and GraphQL and Ariadne ⚡

This Repository is based on this Article Getting started with GraphQL in Python with FastAPI and Ariadne, Read Article to know how to use it.

Overview 📌

Features

Getting Started

Project setup

# clone the repo
$ git clone https://github.com/obytes/fastql.git

# move to the project folder
$ cd fastql

Running the Docker Container

# Pull the latest image
$ make pull

# Build the image
$ make build

# Run the container
$ make start

Testing

While i use HTTPX an HTTP client for Python 3, to test the API, most of the tests are using a live log thats why need before to run a server using uvicorn and migrate the database, then you will have the ability to run the tests. To have a clean environment, recommended to use Docker for that, when you start the containers try to open the application container and then run pytest to test the API.

License

This project is licensed under the terms of the MIT license.