AWS Builder Center
Student _Task_Manager

Student _Task_Manager

Student Task Manager is a full-stack web application built with React, TypeScript, and AWS Blocks. It helps students organize academic tasks by providing secure user authentication and task management features. Users can sign up, sign in, sign out, create, view, edit, complete, and delete their own tasks. AuthBasic handles authentication, ApiNamespace connects the frontend with backend operations, and KVStore stores task data. User-specific task ownership is enforced by the backend.

Building a Student Task Manager with AWS Blocks

Introduction

The Student Task Manager is a full-stack web application designed to help students organize and manage their academic tasks in one place. The application provides a simple interface where authenticated users can create, view, edit, complete, and delete their personal tasks. The project is developed using React and TypeScript for the frontend and AWS Blocks for backend and application integration.

Project Objective

The main objective of this project is to develop a simple and beginner-friendly task management application while demonstrating the use of AWS Blocks components. The application focuses on solving a common student problem: managing multiple academic tasks efficiently. Each user can maintain their own list of tasks and update their progress whenever required.

Technologies Used

The frontend of the application is developed using React, which is responsible for creating the user interface and handling user interactions. TypeScript is used to provide type safety and improve code reliability. The application uses AWS Blocks to provide backend functionality and integration. AuthBasic is used for user authentication, ApiNamespace is used for communication between the frontend and backend operations, and KVStore is used for storing and retrieving task information.

User Authentication

Authentication is an important part of the Student Task Manager. The application uses AuthBasic to manage user authentication. Users can sign up for an account, sign in to the application, and sign out when they finish using it. After authentication, the application can identify the currently authenticated user and use that identity when performing task-related operations.

Task Management

The main functionality of the application is task management. Users can create new tasks by entering task information, view the tasks associated with their account, edit existing tasks, mark tasks as completed or incomplete, and delete tasks that are no longer required. These operations allow students to keep track of their academic activities in an organized way.

Task Data

Each task contains important information such as a unique task ID, task title, completion status, creation timestamp, and user ID. The task ID identifies the individual task, while the title contains the task description. The completed field indicates whether the task has been completed, and the createdAt field records when the task was created. The userId field associates the task with its owner.

User Data Isolation

The application provides user-specific task management by associating every task with the authenticated user's identity. When a user performs a task operation, the backend uses the authenticated user information when accessing KVStore. This allows the application to maintain task ownership and prevents the frontend from being solely responsible for deciding which user's tasks can be accessed.

CRUD Operations

The Student Task Manager supports the basic CRUD operations required for task management. The Create operation allows users to add new tasks. The Read operation retrieves the user's existing tasks. The Update operation allows users to modify task information and completion status. The Delete operation removes unwanted tasks. Together, these operations provide complete basic task management functionality.

Frontend and Backend Communication

The React frontend communicates with the backend through ApiNamespace. When a user performs an action such as creating or updating a task, the frontend sends the appropriate request through the API layer. The backend processes the operation, identifies the authenticated user, and interacts with KVStore to store or retrieve the required task data. The result is then returned to the frontend, where the user interface can display the updated information.

Local Development

The project supports local development using the AWS Blocks development environment. This allows developers to work with the application's React frontend and AWS Blocks components during development. The local setup provides a convenient environment for learning how authentication, API operations, backend logic, and data storage work together in a full-stack application.

Learning Outcomes

Developing this project provides practical experience with React and TypeScript application development, user authentication, CRUD operations, API communication, data storage, and user-specific data handling. It also provides an introduction to using AWS Blocks components such as AuthBasic, ApiNamespace, and KVStore in a full-stack application.

Conclusion

The Student Task Manager is a simple and practical full-stack project that combines React, TypeScript, and AWS Blocks to provide student-focused task management. By using AuthBasic for authentication, ApiNamespace for backend communication, and KVStore for task storage, the application demonstrates the fundamental concepts required to build a functional and user-specific web application.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article