Skip to content

jottenlips/jazz-charts-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Offline Dev

Set up your .aws credentials, you may need to make a DynamoDB table named jazz-charts-dev if serverless does not make one for you.

virtualenv -p python3 venv

npm install

pip install -r requirements.txt

sls wsgi serve -p 8000

Test queries in Graphi at https://localhost:8000/graphql

Example Response

{
  "data": {
    "getSong": {
      "composer": {
        "id": "c1",
        "name": "Jerome Kern"
      },
      "id": "1",
      "title": "All the Things You Are"
    }
  }
}
{
  "data": {
    "getComposer": {
      "id": "c1",
      "name": "Jerome Kern",
      "songs": [
        {
          "id": "1",
          "title": "All the Things You Are"
        }
      ]
    }
  }
}