This project is a Backend Developer Intern assignment. It features a secure REST API built with Spring Boot and a simple React frontend (located in the parent directory's frontend folder).
- Backend: Spring Boot 3, Spring Security 6, JWT, MongoDB.
- Frontend: React, Vite, Axios.
- Tools: Postman for API testing.
- Java 17 or higher
- MongoDB: You must have MongoDB installed and running locally on port
27017(default).
- Navigate to this folder (
Deliverables/Backend). - Run
mvn clean installto build. - Run
mvn spring-boot:runto start the server.- Server runs on
http://localhost:8080. - Ensure MongoDB is running before starting the app.
- Server runs on
(See ../API Documentation/Intern_Assignment.postman_collection.json for full details)
POST /api/v1/auth/register- Register new userPOST /api/v1/auth/login- Login and get JWT
GET /api/v1/tasks- Get tasks (User: own, Admin: all)POST /api/v1/tasks- Create taskPUT /api/v1/tasks/{id}- Update taskDELETE /api/v1/tasks/{id}- Delete task