This project is a full-stack web application using Spring Boot for the backend and React for the frontend, demonstrating CRUD (Create, Retrieve, Update, Delete) and search operations with a MySQL database.
- Backend: Spring Boot
- Frontend: React
- Database: MySQL
- Other Tools: npm, Maven
- Create: Add new records to the database.
- Retrieve: Fetch and display records from the database.
- Update: Modify existing records in the database.
- Delete: Remove records from the database.
- Search: Search for records in the database based on specific criteria.
- @PostMapping: Used to create new records.
- @GetMapping: Used to retrieve records.
- @RequestMapping: Used to search for records.
- @PutMapping: Used to update existing records.
- @DeleteMapping: Used to delete records.
- Java 11 or higher
- Node.js and npm
- MySQL
- Clone the repository:
git clone https://github.com/Santhosh553/CRUD_Api.git cd ./Backend
- Configure the MySQL database connection in 'application.properties':
spring.datasource.url=jdbc:mysql://localhost:3306/your_database_name spring.datasource.username=your_username spring.datasource.password=your_password
- Build and run the backend application:
./mvnw spring-boot:run
- Navigate to the frontend directory:
cd ./Frontend
- Install the dependencies:
npm install
- Start the React application:
npm run start