Build a backend to implement a service which shows the average ratings for movies.
Requirements:
- The user signs up and sets up a password.
- The user can logs in using email and password. Maximum password attempts are 4 after which the account gets locked for 30 minutes.
- The user provides basic information about themselves such as name, age, list of favourite movies and rating out of 5 for each movie.
- The user can search for a movie to fetch the average rating. 4a. Average rating is the average of the ratings provided by users for a particular movie 4b. The user might not enter the exact movie name, the search results should show all relevant movies.
- The user can edit the rating for particular movies and the history of changes is required to be maintained.