Note : Note : This is one of my learning path projects about how coding GraphQL in different environments ex. Django | Flask | FastAPI โค๏ธ
I chose the name JeffQL as I have a low level friend goes by the nickname Jeff and I wish would understand that Python and JavaScript are the future ๐
-
A Simple fastAPI authentication & Login API using GraphQL and JWT.
-
Using
Graphene-Python
a library for building GraphQL APIs in Python easily, its main goal is to provide a simple but extendable API for making developersโ lives easier. -
Using
fastapi-jwt-auth
a FastAPI extension that provides JWT Auth support.
- Clone the Repository into your local Machine :
git clone https://github.com/yezz123/JeffQL
- I prefer creating a virtual env to facilitate my workflow :
sudo pip3 install virtualenv
virtualenv venv
source venv/bin/activate
- Then Try to install the requirements :
pip install -r requirements.txt
- Now you can run the
main.py
usinguvicorn
, or use the file pre-createdstart.py
:
import uvicorn
import main
uvicorn.run(main.app, host="0.0.0.0", port=8080)
- After running the
start.py
, you can start now trying some Queries and mutations ๐.