Glug is a haskell-based CLI and Javascript API for for making word-finding games from movies.
glug.exe [--cli | --api]
For full API support save your api key for The Movie Database to
the environment variable TMDB_KEY
.
The web server listens on port 3000
. This can be changed by setting the PORT
environment variable.
Install Haskell Stack.
> stack setup
> stack [build | test]
Execute your stack binary:
> stack exec glug-exe -- [--cli | --api]
Searches for the given title name and returns possible candidates. Please urlencode the title.
[
{
"ref": "L3N1YnRpdGxlcy9maW5kaW5nLW5lbW8=",
"title": "Finding Nemo",
"subs": 194
}
]
Gets interesting words from the chosen movie. Based on the path to the ref
supplied by /titles/{title}
.
{
"imdbid": "tt0266543",
"runtime": 6000,
"ranked_words": [
{
"word": "foo",
"occurrences": [100, 4500, 5664]
}
]
}
Gets a handful of information about the given movie from The Movie Database.
{
"runtime": 6000,
"poster": "/zjqInUwldOBa0q07fOyohYCWxWX.jpg",
"overview": "A tale which follows the comedic and eventful journeys of two fish, the fretful ..."
}