A backend-only task management REST API inspired by Jira, built with Java and Spring Boot. The application organizes work across accounts, workspaces, projects, and tasks, with invitation-based collaboration and role-based access control. No frontend is included in this repository; the API can be exercised with Postman or another REST client.
- Multi-tenant workspace structure: support multiple workspaces within an account and multiple projects within each workspace.
- Team collaboration: invite users to collaborate and manage their roles and permissions.
- Task management: create and organize tasks, assign tasks to team members, set due dates, and update task status through a workflow.
- Task status workflow:
BACKLOG,TODO,IN_PROGRESS,IN_REVIEW, andDONE. - Authentication and authorization: secure API access using Spring Security and JWT-based authentication.
- REST API: 15+ endpoints for authentication and task, workspace, project, and membership operations.
- Relational persistence: store workspace, project, task, and user-related data in MySQL using Spring Data JPA/Hibernate.
- Input validation: use Jakarta Bean Validation for validating supported request fields.
| Area | Technologies |
|---|---|
| Language | Java 25 |
| Framework | Spring Boot 4.0.3, Spring Web MVC |
| Security | Spring Security, JSON Web Tokens (JWT / JJWT) |
| Persistence | Spring Data JPA, Hibernate |
| Database | MySQL |
| Utilities | Lombok, ModelMapper, Jakarta Bean Validation |
| Build | Maven Wrapper |
flowchart TD
A[API Client / Postman] --> B[Spring Security + JWT Filter]
B --> C[REST Controllers]
C --> D[Service / Business Logic]
D --> E[Spring Data JPA / Hibernate]
E --> F[(MySQL)]
Requests pass through Spring Security/JWT authentication before reaching the REST controllers. Application logic processes workspace/project/task operations, and JPA/Hibernate persists data in MySQL.
Account / Tenant
└── Workspaces
├── Members and roles
└── Projects
└── Tasks
├── Assignee
├── Due date
└── Status
The workspace and project structure lets teams organize work while keeping task operations scoped to the relevant workspace/project.
- JDK 25 (the current
pom.xmlsetsjava.versionto25) - MySQL Server
- Git
git clone https://github.com/Safeer99/Multi-tenant-task-manager.git
cd Multi-tenant-task-managerCreate the local database in MySQL:
CREATE DATABASE jira_clone;Open src/main/resources/application.properties. Configure the database URL, username, password, and JWT secret for your local environment. The application currently uses these property names:
spring.datasource.url=jdbc:mysql://localhost:3306/jira_clone
spring.datasource.username=${DB_USERNAME:root}
spring.datasource.password=${DB_PASSWORD}
jwt.secretkey=${JWT_SECRET_KEY}The ${...} placeholders read environment variables. If your local application.properties still contains hard-coded values, replace those values with the placeholders above. Set DB_USERNAME, DB_PASSWORD, and JWT_SECRET_KEY in your shell or IDE run configuration. Use a strong, random JWT secret of at least 32 bytes; do not commit real credentials or secrets to Git.
The project currently uses Hibernate schema update configuration for local development. For production use, prefer controlled database migrations and review all security/configuration settings before deployment.
Windows PowerShell
$env:DB_USERNAME="root"
$env:DB_PASSWORD="your-mysql-password"
$env:JWT_SECRET_KEY="replace-with-a-long-random-secret-of-at-least-32-characters"
.\mvnw.cmd spring-boot:runmacOS / Linux
export DB_USERNAME=root
export DB_PASSWORD='your-mysql-password'
export JWT_SECRET_KEY='replace-with-a-long-random-secret-of-at-least-32-characters'
./mvnw spring-boot:runBy default, Spring Boot starts at:
http://localhost:8080
Windows:
.\mvnw.cmd clean package
.\mvnw.cmd testmacOS / Linux:
./mvnw clean package
./mvnw testThis repository contains the backend only. Use Postman, curl, or another HTTP client to call the endpoints implemented by the controllers.
Typical workflow:
-
Register or authenticate a user using the authentication endpoints.
-
Use the returned JWT as a bearer token for protected endpoints:
Authorization: Bearer <your-jwt-token> -
Create or access a workspace, invite collaborators, and assign appropriate roles.
-
Create projects within a workspace, then create tasks, assign them to members, and update their statuses.
Refer to the controller classes in src/main/java for the exact endpoint paths, HTTP methods, request payloads, and response formats.
Author: Safeer Anwar