Skip to content

maciejzukowski/graphql-api-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-api-tutorial

Code for the tutorial Zero to App Store in 1 day - Create a GraphQL API with Flask, SQLAlchemy, PostgreSQL

Quick Start

Make sure you create a new postgres database first. We'll connect to it with the environment variable DATABASE_URL.

git clone [email protected]:maciejzukowski/graphql-api-tutorial.git
cd graphql-api-tutorial
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
export PORT=3001
export DATABASE_URL=postgres:///myapp
export SECRET_KEY=XXXGENERETATE_SECRET_KEYXXXX
alembic upgrade head
python app/server.py 
### Open http://127.0.0.1:3001/graphql to see the graphiql explorer

About

GraphQL API with Flask, SQLAlchemy, PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published