Skip to content

Casting ReCall is a movie guessing game where you guess the names of movies based on who starred in them. This Node/Express back end queries The Movie Database and generates a puzzle key for the front end to display and work with.

Notifications You must be signed in to change notification settings

matthewcsimpson/CastingRecall-v1-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CastingRecall - API Server

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:

  1. Chose a random year between 1990 and now.
  2. Get one of the most popular movies from that year.
  3. Load five actors from that movie.
  4. Randomly choose an actor from the previously loaded.
  5. Choose one of that actors most popular movies, excluding any duplicates.
  6. Load five more actors from that movie, excluding any dupicates.
  7. 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

Related

Here are some related projects

Casting ReCall - React Front End

API Reference

Get latest puzzle

  GET /puzzle

Get list of puzzles

  GET /puzzle/list

Get a specific puzzle

  GET /puzzle/:puzzleid
Parameter Type Description
puzzleid number Required. Id of item to fetch

Generate a new puzzle

  GET /puzzle/generate

Technology & Dependancies

This project was created using the following.

nodejs

express

heroku

Make sure to run npm install!

Environment Variables

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&region=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&region=US&with_original_language=en&with_cast="`
SERVER_PORT={PORT NUMBER HERE}

Author

About

Casting ReCall is a movie guessing game where you guess the names of movies based on who starred in them. This Node/Express back end queries The Movie Database and generates a puzzle key for the front end to display and work with.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published