In this assignment, you will create a backend server using Dart programming language and the Shelf package to handle HTTP requests and responses. The server will have endpoints to login user, display all movies. You should use the shelf_hotreload and json_webtoken packages to ensure good coding practices and ease of development.
- Create a Dart project and install the Shelf and shelf_hotreload packages.
- Create a "model" file to represent the user object with the required properties.
- Create a "model" file to represent the movies object with the required properties.
- Create a "routes" folder to contain the router handlers for each endpoint.
- Create a "response" folder to contain the handler methods for each endpoint.
- Implement an endpoint to logs in a user by providing authentication token.
- Implmenet an endpoint to retrieves the user profile information after login.
- Implement an endpoint to display all movies. This endpoint should return a JSON response containing all movie objects.
Code readability and documentation. Proper error handling.
Tuesday, 17sep, 10:00 am.