-
Creating scripts for filling an existing database:
1.1. data/movies.json contains movies descriptions: cast, genre and release year. These scripts do not have to be a part of the application, they do not have to accept the file by endpoint, just simple external scripts which will run once during the presentation.
1.2. The file must be parsed, the data must be placed in the database. The data model has already been declared, the database has been created, the migration carried out. Please, use all of that in your work.
1.3. For extra credit, you can come up with a process to remove invalid cast members names from the dataset in scripts. โ Optional -
Creating an API:
2.1. The user should be able to create/edit/delete a movie. Creation and editing should be executed by selection actors and genres from the existing ones in the database.
2.2. The user should be able to get a list of actors aggregated by the years of release of the films in which he starred, with the number of films released this year.Example:
- Ashton Kutcher, 2006, 2
- Ashton Kutcher, 2007, 1
- Gary Sinise, 2005, 3
- Gary Sinise, 2006, 4
Here are a few notes:
- The service should be written in Flask, each request and response should be validate by Marshmallow.
- Write a lot of comments with an explanation of what you did and what you intended to achieve.
- Run your project and see that it works before submitting it.
- Submit the project with readme file (markdown) containing anything that you want me to read regarding the project (things that you weren't sure about, packages that you used) โ Optional
It using flask 1.1.2 as a task restriction.
$ docker-compose up