Skip to content

Milestones

List view

  • Overdue by 1 year(s)
    Due by August 4, 2024
    1/1 issues closed
  • Objective: The objective of this task is to create a simple Task Management REST API using Go programming language and Gin Framework. This API will support basic CRUD operations for managing tasks. Requirements Implement a REST API with the following endpoints: GET /tasks: Get a list of all tasks. GET /tasks/:id: Get the details of a specific task. PUT /tasks/:id: Update a specific task. This endpoint should accept a JSON body with the new details of the task. DELETE /tasks/:id: Delete a specific task. POST /tasks: Create a new task. This endpoint should accept a JSON body with the task's title, description, due date, and status. Use an in-memory database to store tasks. Database integration with persistent storage will be covered in later lessons, so for this task, focus on implementing data storage in memory. Ensure proper error handling and response codes for different scenarios such as successful operations, invalid requests, and resources not found. Provide clear and concise documentation for each endpoint using postman, including expected request payloads and response formats. Utilize Postman to test each endpoint of the Task Management API. Instructions Use Go programming language and Gin Framework to develop the API. Implement the specified endpoints adhering to the defined requirements. Utilize an in-memory database to store task data. Test the API endpoints using appropriate tools (e.g., Postman, curl). Write clean, well-structured, and maintainable code with proper comments. Ensure the code is properly formatted and follows best practices for Go development. Document the API endpoints with details on request and response formats. Submit your code along with any necessary instructions for running and testing the API. Folder Structure: Follow the following folder structure for this task task_manager/ ├── main.go ├── controllers/ │ └── task_controller.go ├── models/ │ └── task.go ├── data/ │ └── task_service.go ├── router/ │ └── router.go ├── docs/ │ └── api_documentation.md └── go.mod main.go: Entry point of the application. controllers/task_controller.go: Handles incoming HTTP requests and invokes the appropriate service methods. models/: Defines the data structures used in the application. data/task_service.go: Contains business logic and data manipulation functions. router/router.go: Sets up the routes and initializes the Gin router and Defines the routing configuration for the API. docs/api_documentation.md: Contains API documentation and other related documentation. Evaluation Criteria: Implementation of all required endpoints according to specifications. Correct handling of various HTTP methods and response codes. Proper error handling and validation of input data. Efficient and well-structured code following Go best practices. Clear and comprehensive documentation of API endpoints. Compliance with the provided instructions and requirements. Note Remember that this task is focused on backend development skills using Go and Gin Framework. Avoid unnecessary complexity in the implementation. Database integration with persistent storage will be addressed in subsequent lessons; hence, focus on implementing data storage in memory for this task.

    Overdue by 1 year(s)
    Due by August 2, 2024
    14/14 issues closed
  • Correct Implementation: Ensure that the structs, interfaces, and methods are correctly defined and implemented according to the requirements. Functionality: Verify that all required functionalities (adding, removing, borrowing, returning books, and listing books) are correctly implemented and working as expected. Error Handling: Ensure that appropriate error handling is implemented, particularly for scenarios where books or members are not found, or books are already borrowed. Code Structure: Verify that the code follows the provided folder structure and is organized in a clear and maintainable manner. Documentation

    Overdue by 1 year(s)
    Due by July 30, 2024
    2/2 issues closed
  • Task: Word Frequency Count Write a Go function that takes a string as input and returns a dictionary containing the frequency of each word in the string. Treat words in a case-insensitive manner and ignore punctuation marks. Write test for your function Task : Palindrome Check Write a Go function that takes a string as input and checks whether it is a palindrome or not. A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward (ignoring spaces, punctuation, and capitalization). Write test for your function

    Overdue by 1 year(s)
    Due by July 30, 2024
    5/5 issues closed
  • Create a Go console application that allows students to calculate their average grade based on different subjects. The application should prompt the student to enter their name and the number of subjects they have taken. For each subject, the student should enter the subject name and the grade obtained (numeric value). After entering all subjects and grades, the application should display the student's name, individual subject grades, and the calculated average grade.

    Overdue by 1 year(s)
    Due by July 30, 2024
    4/4 issues closed