fernandoepm1 / movies-test

A Ruby on Rails application with a few errors that can be used as a technical test.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About your test

For your technical test, fork this repository and then procceed as mentioned on the problem proposal below. Please reach out if you have any questions!

Problem proposal

Welcome to your technical test! Here's the problem you're trying to solve:

A developer was tasked to create a Rails API from scratch that would list upcoming movie releases on Brazil. After some time, the team realized that the codebase might need a bit of a refactoring, and you were given the opportunity to help! We ask the following things from you:

  • Analyze the code from the repository and check for possible problems/improvement oportunities;
  • Open one or more PRs with your suggestions. You can refactor the code, explaining the reasons why you changed the code on commit messages.
  • You can also add new functionalities if you'd like!

Proposed application

list upcoming movie releases on Brazil.

  • API written in Rails;
  • All endpoints should return JSON unless specified.

Endpoints:

GET /movies

List all movies on a reverse chronological order.

Data from the movie that should be shown:

  • title
  • release_date
  • genre
  • runtime
  • parental_rating
  • plot
  • user ratings (from 1 to 5)

GET /movies/:id

Show information about a particular movie

GET /movies/search?title=

Search movies given a title

POST /movies

Add a new movie

DELETE /movies/:id

Remove a movie

POST /ratings/:movie_id

Rate a movie.

WARNING: This is a fictional piece of work. No real codebases were harmed on the production of this test.

About

A Ruby on Rails application with a few errors that can be used as a technical test.


Languages

Language:Ruby 86.0%Language:HTML 7.9%Language:JavaScript 5.1%Language:CSS 1.0%