Skip to content

Flutter-gg-1/API-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Assignment: Backend Development using Dart and Shelf Package

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.

Requirements:

  1. Create a Dart project and install the Shelf and shelf_hotreload packages.
  2. Create a "model" file to represent the user object with the required properties.
  3. Create a "model" file to represent the movies object with the required properties.
  4. Create a "routes" folder to contain the router handlers for each endpoint.
  5. Create a "response" folder to contain the handler methods for each endpoint.
  6. Implement an endpoint to logs in a user by providing authentication token.
  7. Implmenet an endpoint to retrieves the user profile information after login.
  8. Implement an endpoint to display all movies. This endpoint should return a JSON response containing all movie objects.

Grading Criteria:

Code readability and documentation. Proper error handling.

Deadline

Tuesday, 17sep, 10:00 am.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published