SpringReactDashboard
This project demonstrates how to build a full-stack application with Spring Boot and React.js. It shows how data flows from the backend to the frontend using RESTful APIs and MySQL. A great starting point for understanding how to integrate Spring and React for dynamic web development.
Install / Use
/learn @vasanthhtnasav/SpringReactDashboardREADME
Full Stack Employee Management Application
Overview
A full-stack employee management system using React.js, Spring Boot, and MySQL.
Technologies Used
- Frontend: React.js
- Backend: Spring Boot
- Database: MySQL
- Build Tool: Maven
- API: RESTful APIs
- API Testing: Postman
Setup Instructions
Frontend (React.js)
- Clone the repository:
git clone https://github.com/vasanthhtnasav/SpringReactDashboard.git
cd frontend
npm install
npm start
The React app runs at http://localhost:3000
Backend (Spring Boot)
- Navigate to backend directory:
cd backend
-
Set up MySQL and create database
employee_db -
Update
application.properties:
spring.datasource.url=jdbc:mysql://localhost:3306/employee_db
spring.datasource.username=root
spring.datasource.password=password
- Run Spring Boot application:
mvn spring-boot:run
The backend runs at http://localhost:8080
Data Flow
-
Frontend (React.js):
- Sends HTTP requests via
fetchAPI - Manages employee operations
- Sends HTTP requests via
-
Backend (Spring Boot):
- Exposes RESTful APIs
- Processes requests
- Interacts with MySQL database
-
Database (MySQL):
- Stores employee data
- Supports CRUD operations
API Endpoints
GET /all: List all employeesGET /find/{id}: Get specific employeePOST /employee: Add employeePUT /up/{id}: Update employeeDELETE /del/{id}: Delete employee
API Testing with Postman
- Download and install Postman
- Create a new collection for employee management
- Set up requests for each endpoint:
- GET All Employees:
http://localhost:8080/all - GET Employee by ID:
http://localhost:8080/find/{id} - POST New Employee:
- URL:
http://localhost:8080/employee - Body: JSON employee object
- URL:
- PUT Update Employee:
- URL:
http://localhost:8080/up/{id} - Body: Updated employee details
- URL:
- DELETE Employee:
http://localhost:8080/del/{id}
- GET All Employees:
Frontend Details
- Built with React.js
- Uses
fetchfor backend communication - Interactive employee management forms
Backend Details
- Spring Boot application
- Spring Data JPA integration
EmployeeServicehandles business logic
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
