Skip to content

A python app using GraphQL, SQLAlchemy and JWTAuthentication

Notifications You must be signed in to change notification settings

joshidivanshu/graphQLJWT-Flask-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Flask & Graphene-SQLAlchemy(GraphQL) & Flask-GraphQL-Auth(JWTAuthentication) Project

Installing Requirements

Use Virtualenv and install the packages.

pip install -r requirements.txt

Running Flask Server

Go to the root dir and run the below line in the terminal.

python app.py

Creating a new Database

Create a database(Used MySQL)

database.py

# Replace 'mysql://root:password@localhost/db_name' with your path to database

engine = create_engine('mysql://root:password@localhost/db_name', convert_unicode=True)

Testing GraphQL

Go to http://localhost:5000/graphql to use queries & mutations

for testing queries and mutations please check the query format mentioned in queries.txt
check Flask-GraphQL-Auth documentation for more information on JWT Authentication used in the project.

Project Snapshots

Screenshot from 2021-04-15 14-39-34 Screenshot from 2021-04-15 14-39-19