A production-style Task Management System built using Spring Boot, Spring Security, JWT Authentication, and MySQL.
The application enables organizations to manage employees, projects, teams, tasks, and collaboration through comments while enforcing secure role-based access control.
- Create Employee (Admin Only)
- Update Employee Details
- Get User by ID
- Get All Users
- Soft Delete User
- BCrypt Password Encryption
- User Status (ACTIVE / INACTIVE)
- JWT Authentication
- Stateless Security
- Spring Security Integration
- BCrypt Password Hashing
- Login API
- Role Based Authorization
- ADMIN
- MANAGER
- EMPLOYEE
- Create Project
- Update Project
- View Project
- View All Projects
- Soft Delete Project
- Duplicate Project Name Validation
- Project Status Management
- Created By / Updated By Tracking
- Create Team
- Update Team
- Delete Team (Soft Delete)
- Change Team Manager
- Add Member
- Remove Member
- Add Project to Team
- Remove Project from Team
- View Team
- View All Teams
- One Manager can manage only one Team
- One Employee can belong to only one Team
- Manager automatically becomes Team Member
- Team can work on multiple Projects
- Project can contain multiple Teams
- Create Task
- Update Task
- Delete Task
- Change Task Status
- View Task
- View All Tasks
- Get Tasks by Project
- Get Tasks by Team
- Get Tasks by Assigned User
- Task can only be assigned to Team Members
- Team must belong to selected Project
- Due Date validation
- Active User validation
OPEN
β
IN_PROGRESS
β
TESTING
β
COMPLETED
Rollback Supported
TESTING
β
IN_PROGRESS
Task can also be marked as
CANCELLED
- Create Comment
- Update Comment
- Delete Comment
- Get Comment by ID
- Get Comments by Task
| Feature | ADMIN | MANAGER | EMPLOYEE |
|---|---|---|---|
| Create Employee | β | β | β |
| Create Project | β | β | β |
| Update Project | β | β | β |
| Delete Project | β | β | β |
| Create Team | β | β | β |
| Update Team | β | β | β |
| Delete Team | β | β | β |
| Change Manager | β | β | β |
| Add/Remove Project | β | β | β |
| Add/Remove Member | β | β | β |
| Create Task | β | β | β |
| Update Task | β | β | β |
| Change Task Status | β | β | β |
| Create Comment | β | β | β |
Controller
β
βΌ
Service Layer
β
βΌ
Repository Layer
β
βΌ
MySQL Database
The project follows a layered architecture separating business logic from controllers and persistence.
- Java 21
- Spring Boot
- Spring Security
- Spring Data JPA
- Hibernate
- JWT
- BCrypt Password Encoder
- MySQL
- Maven
- Jakarta Bean Validation
- SLF4J
src
βββ controller
βββ service
β βββ impl
βββ repository
βββ entity
βββ dto
βββ security
βββ config
βββ exception
βββ enums
Login Request
β
βΌ
AuthenticationManager
β
βΌ
CustomUserDetailsService
β
βΌ
BCrypt Password Verification
β
βΌ
JWT Generation
β
βΌ
JWT Returned to Client
Every protected request passes through
JWT Authentication Filter
β
Token Validation
β
Security Context
β
Protected Controller
User
β
β Many-To-One
βΌ
Team
Team
β
β Many-To-Many
βΌ
Project
Team
β
β One-To-Many
βΌ
Task
Task
β
β One-To-Many
βΌ
Comment
- Duplicate Team Name Validation
- Duplicate Project Name Validation
- Team must belong to Project before Task Creation
- Manager must have MANAGER Role
- One Manager can manage only one Team
- One User can belong to only one Team
- Only Active Users can be assigned Tasks
- Only Active Users can Comment
- Soft Delete for Users, Teams, Projects and Tasks
- Task Status Transition Validation
- Due Date Validation
- Global Exception Handling
- Authentication API
- User API
- Project API
- Team API
- Task API
- Comment API
- Refresh Token Support
- Swagger / OpenAPI Documentation
- Docker Support
- Pagination & Sorting
- Search & Filtering APIs
- Email Notifications
- File Attachments
- Unit & Integration Tests
- Activity Timeline
- Dashboard & Analytics
git clone https://github.com/<your-github-username>/task-master.gitUpdate
application.properties
spring.datasource.url=jdbc:mysql://localhost:3306/task_master
spring.datasource.username=root
spring.datasource.password=your_passwordjwt.secret=your-super-secret-key
jwt.expiration=86400000mvn spring-boot:runApplication starts on
http://localhost:8080