Skip to content

mootrichard/pycon-square

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Wrap a RESTful API with a GraphQL Endpoint

Prerequisites:

  • Have virtualenv installed
pip install virtualenv

Steps to Setup:

git clone https://github.com/mootrichard/pycon-square.git
cd pycon-square
touch .env

Put your sandbox token into your .env file as

ACCESS_TOKEN=YOUR_ACCESS_TOKEN

replacing YOUR_ACCESS_TOKEN with your access token found at https://connect.squareup.com/apps

virtualenv venv
source ./venv/bin/activate
pip install -r requirements.txt
python server.py

Open browser to http://localhost:5000/graphql

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages