Skip to content

oliveroneill/WiltServer

Repository files navigation

Wilt - What I Listen To

Build Status Platform Swift Package Manager macOS Linux

This is a GraphQL server for querying a user's play history.

The server uses Hexaville to deploy to Lambda and uses API Gateway for making HTTP requests. GraphQL is used for making queries.

Status

Hexaville is still a relatively new tool and I've had issues keeping things working. In order to make deployment easier, I've migrated to Google Cloud Functions using node.js and this project is no longer maintained. There's a new project called wilt-cloud-functions that supersedes this one.

Dependencies

Deployment

hexaville deploy WiltServer

Usage

curl -i -G -H "Content-Type: application/graphql" https://<ID>.execute-api.<REGION>.amazonaws.com/staging/ --data-urlencode 'query={ history(userId: "<USER-ID>") { userId date primaryArtist name artists trackId } }'

DynamoDB

This server will make queries to a table called SpotifyHistory. It's columns are:

  • user_id
  • date
  • artists
  • name
  • primary_artist
  • track_id

About

A GraphQL server for querying Wilt user info

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published