Home

Awesome

JeffQL

JeffQL

A Simple FastAPI authentication & Login API using GraphQL and JWT.

I choose this Name JeffQL cause i have a Low level Friend with a Nickname Jeff i wish he understand that Python and JavaScript is the future :rocket:

Getting Started

Prerequisites

Project setup

# clone the repo
$ git clone https://github.com/yezz123/JeffQL

# move to the project folder
$ cd JeffQL

Creating virtual environment

# creating pipenv environment for python 3
$ pipenv --three

# activating the pipenv environment
$ pipenv shell

# if you have multiple python 3 versions installed then
$ pipenv install -d --python 3.8

# install all dependencies (include -d for installing dev dependencies)
$ pipenv install -d

Running the Application

# Running the application using uvicorn
$ uvicorn main:app

## To run the Application under a reload enviromment use -- reload
$ uvicorn main:app --reload

Running the Docker Container

$ docker build
$ docker images
$ docker container run -p 5000:5000 -dit --name JeffQL jeffql:latest
$ docker container ps

Preconfigured Packages

Includes preconfigured packages to kick start JeffQL by just setting appropriate configuration.

PackageUsage
uvicorna lightning-fast ASGI server implementation, using uvloop and httptools.
graphene-pythona library for building GraphQL APIs in Python easily.
PyJWTa Python library which allows you to encode and decode JSON Web Tokens (JWT).
starlettea lightweight ASGI framework/toolkit, which is ideal for building high performance asyncio services.

Contributing

License

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