In this project we aim to build a website about movies. Users can get information about the top 250 movies, movies that are currently in cinemas, statistics about movies that have been added to the personal watched account on trakt and much more.
To get the required information, we access several APIs: Trakt API, The Movie Database (TMDB) API, and the IMDB API.
We used the two libraries ChartJS and EmailJS.
The webapp consists of multiple tabs
- Landing Page: See a random trailer and 4 random movies currently in theater. Submit feedback through a form (EmailJS).
- Top 250 Movies: See, sort, and filter top 250 IMDB movies. View more information about movie in modal.
- In Theaters: See movies currently playing in theaters. Filter for genres. Add movie to trakt watchlist.
- Stats: See number of movies watched and time spent watching movies (tracked via trakt.tv). See statistics about movies watched per release year, top 6 actors in movies watched, lowest and highest rated movies, genres, production countries and original languages (ChartJS).
- Watched: See gallery of movies watched (from trakt.tv).
- About: Find data about APIs used.
- Login: Login to trakt.tv
- Create a
config.js
file insidescripts
directory - Add 3 objects:
traktapi
,moviedb
, and a listimdbapi
traktapi
: Create a trakt.tv application and copy the API token and client secret.- Register for an API key with
moviedb
andimdbapi
.
var traktapi = {
username: "me",
clientId: [clientIdFromTrakt],
clientSecret : [clientSecretFromTrakt],
token2: ""
}
var imdbapi = [[token1], [token2]]
var moviedb = {
key1: [tmdbAPIKey]
}
Project submitted for grading
- more data in top250 list
- improving speed of API calls
- additionally to removing undesired genres, searching for desired genres
- ability to sort watched movies and movies in theater
- improving CSS and design
- more statistics about watched movies
- ability to rate movies