Your client has tasked you with making a RESTful API to support the ultimate Moviegoers Guide suite of applications. They are asking for an API that serves up:
- A list of movies
- The user should be able to search the movies by title
- The user should be able to filter the movies by rating
- The user should be able to filter the movies by category
- Movie details for each movie
- A list of actors in a movie
We have provided a mysql database of movie info for you. We have also provided a starter PHP application using the SLIM framework although you are free to use the language and framework of your choice - Ruby, Node, etc.
You will need Docker installed. Here are the instructions to install Docker for (Mac) or (Windows). For older systems that do not meet the docker requirements, use the Docker Toolbox installation instructions.
NOTE if using Docker Toolbox: To verify you may have to use the ip address of the docker machine. In the verify installation section you will want to use the ip address returned by docker-machine ip instead of localhost.
You will also need to install Composer if you plan to use our starter PHP application. Here are the instructions to install Composer
Launch the test code with the following commands
cd developer_test_server/movies
composer install
cd ../
docker-compose up -d
In a browser navigate to http://localhost:3000/movies. You should see [] returned from the request.
Note: If you don't see the empty array, run docker-compose logs and wait for all the containers to be fully loaded. Once the containers are completely loaded you should be able to hit the movies endpoint.
host: 127.0.0.1
username: sakila
password: sakila
database: sakila
port: 3306
When you have completed your app, please post it in a public repository and send us a link - GitHub, GitLab, BitBucket etc.