The FocusFlow is a web-based tool that helps users efficiently manage their tasks in a to-do list format. It allows users to create, update, delete, and view tasks while also providing user authentication features. The application uses SweetAlert2 (Swal) for user-friendly alerts.
- 🎨 Frontend: Angular, Bootstrap
- ⚙️ Backend: Spring Boot (REST API), Spring Data JPA
- 🗄 Database: MySQL
- ✅ User Registration & Login – Secure authentication system.
- ✅ Task Creation – Add tasks with a title, description, due date, and status.
- 📋 Task Viewing – Display a list of tasks with relevant details.
- ✏️ Task Update – Modify task details such as title, description, due date, and completion status.
- 🗑 Task Deletion – Remove unnecessary tasks.
- 🔎 Find Task by ID – Retrieve a specific task using its ID.
- 🔔 SweetAlert2 Alerts – Enhance user experience with visually appealing popups.
The project follows a client-server architecture:
- Frontend (Angular) → Communicates with the backend via RESTful APIs.
- Backend (Spring Boot) → Exposes endpoints for task management.
- Database (MySQL) → Stores task data.
- Clone the repository.
- Navigate to the backend project directory.
- Run:
mvn spring-boot:run
- The backend will start at
http://localhost:9000.
- Navigate to the Angular project directory.
- Install dependencies:
npm install
- Run the Angular app:
ng serve
- Open
http://localhost:4200in your browser.
| 🔹 Method | 🔹 Endpoint | 🔹 Description |
|---|---|---|
| POST | /users/register |
Register a new user |
| POST | /users/login |
Authenticate user login |
| 🔹 Method | 🔹 Endpoint | 🔹 Description |
|---|---|---|
| POST | /tasks/create-task |
Create a new task |
| GET | /tasks/view-tasks |
Fetch all tasks |
| PUT | /tasks/update-task/{id} |
Update a task by ID |
| DELETE | /tasks/delete-task/{id} |
Delete a task by ID |
| GET | /tasks/find-task/{id} |
Find a task by ID |
The application uses SweetAlert2 (Swal) for displaying alerts, confirmations, and success messages in a visually appealing manner.
Example usage in Angular:
import Swal from 'sweetalert2';
Swal.fire({
title: 'Success!',
text: 'Task has been created successfully.',
icon: 'success',
confirmButtonText: 'OK'
});- 🔐 Role-based authentication & authorization
- 📊 Task prioritization and categorization
- 🔔 Notifications and reminders
This project is open-source. Feel free to modify and improve it!
Made with ❤️ by Japneet Kaur


