Skip to content

HarshAggarwal18/PrimeTrade_assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot + React Intern Assignment

📌 Overview

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).

🛠 Tech Stack

  • Backend: Spring Boot 3, Spring Security 6, JWT, MongoDB.
  • Frontend: React, Vite, Axios.
  • Tools: Postman for API testing.

🚀 Setup Instructions

Prerequisites

  • Java 17 or higher
  • MongoDB: You must have MongoDB installed and running locally on port 27017 (default).

How to Run

  1. Navigate to this folder (Deliverables/Backend).
  2. Run mvn clean install to build.
  3. Run mvn spring-boot:run to start the server.
    • Server runs on http://localhost:8080.
    • Ensure MongoDB is running before starting the app.

📚 API Overview

(See ../API Documentation/Intern_Assignment.postman_collection.json for full details)

Auth

  • POST /api/v1/auth/register - Register new user
  • POST /api/v1/auth/login - Login and get JWT

Tasks (Protected)

  • GET /api/v1/tasks - Get tasks (User: own, Admin: all)
  • POST /api/v1/tasks - Create task
  • PUT /api/v1/tasks/{id} - Update task
  • DELETE /api/v1/tasks/{id} - Delete task

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors