What is the problem? And where is the challenge?
Create a backed app with a light framework.
It will receive a requested Genre and only serve Movies with the corresponding Genre.
All routes to return a JSON format
How have you solved the problem?
Used Flask framework, csv parser function to read the csv file.
How to install your project? npm install? make? make re?
pip install Flask
Then run the server with:
python app.py
How does it work?
Six Genres can be accessed with this application:
- genre with an argument, e.g. Action, Comedy
- Action
- Adventure
- Comedy
- Drama
- Romance
GET on / This route will parse the GET parameter genre, to be able to filter by movie genre. Example on how to access this route:
curl "http://localhost:8080?genre=action"
GET on /action This route will only serve action movies. Example on how to access this route:
curl "http://localhost:8080/action"
Natalie P.
