Casting ReCall is a movie based guessing game in which the player attempts to geuss the titles of six movies baed on the cast list. This API server genrates the key to each puzzle by querying The Movie Database using the following sequence:
- Chose a random year between 1990 and now.
- Get one of the most popular movies from that year.
- Load five actors from that movie.
- Randomly choose an actor from the previously loaded.
- Choose one of that actors most popular movies, excluding any duplicates.
- Load five more actors from that movie, excluding any dupicates.
- Repeat until the total number of movies is 6.
This project is currently deployed at http://casting-recall-api.herokuapp.com/ Give the game a try at https://castingrecall.herokuapp.com
Here are some related projects
Casting ReCall - React Front End
GET /puzzle
GET /puzzle/list
GET /puzzle/:puzzleid
Parameter | Type | Description |
---|---|---|
puzzleid |
number |
Required. Id of item to fetch |
GET /puzzle/generate
This project was created using the following.
Make sure to run npm install
!
To run this project, you will need to add the following environment variables to your .env file.
You will need to provide a TMDB API key.
TMDB_API_KEY={YOUR API KEY GOES HERE}
TMDB_DISCOVER_MOVIE_BY_YEAR_SORT_REV="https://api.themoviedb.org/4/discover/movie?with_original_language=en&sort_by=revenue.desc®ion=US&primary_release_year="
TMDB_SEARCH_POP_URL="https://api.themoviedb.org/3/movie/popular?with_original_language=en&primary_release_year="
TMDB_SEARCH_CREDITS_FRONT="https://api.themoviedb.org/3/movie/"
TMBD_SEARCH_CREDITS_BACK="/credits"
TMDB_DISCOVER_MOVIE_BY_ACTOR="https://api.themoviedb.org/3/discover/movie?sort_by=revenue.desc®ion=US&with_original_language=en&with_cast="`
SERVER_PORT={PORT NUMBER HERE}