Code Monkey home page Code Monkey logo

tmdb's Introduction

Problem

The app will be fed with content from The Movie Database (TMDb).

Site: https://themoviedb.org

Documentation: https://developers.themoviedb.org

Image of TMDb


Request Rate Limiting

TMDb enforce a small amount of rate limiting. Our current limits are 40 requests every 10 seconds and are limited by IP address, not API key.

Ref: https://developers.themoviedb.org/3/getting-started/request-rate-limiting

To-do

The first release of the app will be very limited in scope, but will serve as the foundation for future releases. It's expected that user will be able to:

  • Scroll through the list of upcoming movies - including movie name, poster or backdrop image, genre and release date. List should not be limit to show only the first 20 movies as returned by the API. This solution contatains infinite-scroll to pagination

  • Select a specific movie to see details (name, poster image, genre, overview and release date).

  • Search for movies by entering a partial or full movie name.

Requirements

  • Ruby 2.5.0
  • Rails >= 5.1.6

P.s: This project contains Ruby wrapper for TMDb https://github.com/18Months/themoviedb-api (Don't need to add)

How to use

After the install requirements are completed, the next steps are:

  • Gems: bundle install
  • Create ENV: export TMDB_API_KEY="YOUR_KEY_HERE"
  • Execute server: rails s

Run: localhost:3000

Endpoint

URL Description
GET / Show all movies upcoming, by default region: us
GET /?region= Show all movies upcoming, basead in parameter, example: ?region=pt-BR
GET /movies/:id Movie ID

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.