A simple React + Spring Boot + MySQL CRUD application with authentication and search functionality.
Username : admin
Password : admin123
The output Demo video is Available in the Zip file.
Before running this project, make sure you have:
- [Node.js] ----> (https://nodejs.org/) (v16 or higher)
- [Java JDK] ----> (https://adoptium.net/) (v17 recommended)
- [Maven] ----> (https://maven.apache.org/) (v3.8+)
- [MySQL] ----> (https://dev.mysql.com/downloads/)
- [IntelliJ IDEA] ----> (https://www.jetbrains.com/idea/) (for backend)
- [Visual Studio Code] ---->(https://code.visualstudio.com/) (for frontend)
-
Create MySQL Database
CREATE DATABASE userdb;
-
Configure Database in application.properties Open:
backend/src/main/resources/application.properties
Update:
spring.datasource.url=jdbc:mysql://localhost:3306/userdb
spring.datasource.username=YOUR_MYSQL_USERNAME
spring.datasource.password=YOUR_MYSQL_PASSWORD
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
🏃♂️ Running Backend in IntelliJ IDEA 0r (Eclipse can be Used)
-
Open IntelliJ IDEA.
-
Go to File → Open and select the backend folder.
-
IntelliJ will detect it as a Maven project; wait for dependencies to load.
-
Open src/main/java/.../BackendApplication.java (main Spring Boot class).
-
Click the green play button (▶) next to the main method or on top right.
-
Backend will start on:
💻 Frontend Setup (React) in VS Code
-
Open Visual Studio Code.
-
Go to File → Open Folder and select the frontend folder.
-
Open the integrated terminal (Ctrl+`).
-
Install dependencies:
npm install
- Configure API URL in:
frontend/src/config.js
Example:
export const API_URL = "http://localhost:8081/api";
- Start frontend:
npm start
- App will run at:
