Skip to content

Rosan009/TechLambdas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Full Stack Application - React + Spring Boot + MongoDB This project is a full stack web application built with:

Spring Boot (Backend) for API development.

MongoDB for database management.

React (Frontend) based on a provided Figma design, including form validation and private routes.

πŸ› οΈ Technologies Used Backend:

Java 17+

Spring Boot

Spring Data MongoDB

Maven

Frontend:

React (with Vite / CRA)

React Router

Axios

Formik + Yup (for form validation)

TailwindCSS or CSS modules (optional styling)

Database:

MongoDB Atlas (Cloud) or Local MongoDB

πŸ“‚ Project Structure css Copy Edit backend/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ main/ β”‚ β”‚ β”œβ”€β”€ java/com/example/backend/ β”‚ β”‚ β”‚ β”œβ”€β”€ controller/ β”‚ β”‚ β”‚ β”œβ”€β”€ model/ β”‚ β”‚ β”‚ β”œβ”€β”€ repository/ β”‚ β”‚ β”‚ β”œβ”€β”€ service/ | | | |── config/ β”‚ β”‚ └── resources/ β”‚ β”‚ β”œβ”€β”€ application.properties β”‚ └── test/ frontend/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ components/ β”‚ β”œβ”€β”€ images/ β”‚ β”œβ”€β”€ services/ β”‚ └── App.js πŸ”₯ Backend Setup (Spring Boot) Clone the repository

bash Copy Edit git clone https://github.com/yourusername/your-repo.git cd backend Configure application.properties Add MongoDB connection details:

properties Copy Edit spring.data.mongodb.uri=mongodb+srv://rosan:Rosan%40123@kafb1ev.mongodb.net/EmployeeDetail?retryWrites=true&w=majority&authSource=admin server.port=8081 Run the Application

bash Copy Edit ./mvnw spring-boot:run The API will be available at: http://localhost:8081/employee

⚑ Frontend Setup (React) Navigate to frontend folder

bash Copy Edit cd frontend Install dependencies

bash Copy Edit npm install Run the React App

bash Copy Edit npm run dev The React app will be available at: http://localhost:3000

βœ… Features Backend:

CRUD Operations (Create, Read, Update, Delete)

MongoDB Integration

RESTful API

Frontend:

User Authentication (Login, Register)

Form Validation (using Yup)

Private Routes (protected pages after login)

Axios for API calls

Responsive design matching Figma UI

✨ Extra Notes Ensure MongoDB is running if using a local server (localhost:27017).

CORS settings are enabled in the backend for React frontend access.

Protected routes automatically redirect unauthenticated users to login.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors