Create a virtual environment
virtualenv venv
source venv/bin/activate
Install the dependencies:
pip install -r requirements.txt
Setup the database, and start the server:
./app.py
Now open http://127.0.0.1:5000/graphql and run queries!
{
allDatasets {
edges {
node {
id
name
description
raw
}
}
}
}
query Dataset($id: ID!){
dataset(id: $id) {
id
name
data{
columns
}
}
}
variables:
{
"id": "RGF0YXNldDox"
}
{
dataset (id:"RGF0YXNldDox") {
id
name
data {
columns
}
}
}
{
dataset (id:"RGF0YXNldDox") {
id
name
raw
data {
columns
columnNames
columnTypes
}
histograms {
bins
freq
}
}
}