This backend project is designed to work seamlessly with the FrontendProject. It includes MySQL integration for data persistence.
- Spring Boot: The project is built using the Spring Boot framework.
- MySQL: Data is stored and managed in a MySQL database.
- Clone this repository to your local machine.
- Set up a MySQL database and update the configuration in
application.properties
. - Run the application using your preferred IDE or by using the command
./mvnw spring-boot:run
.
GET /api/data: Retrieve data from the backend. POST /api/data: Add new data to the backend. PUT /api/data/{id}: Update data with the specified ID. DELETE /api/data/{id}: Delete data with the specified ID.
Ensure that you have a MySQL database set up with the following details:
spring.datasource.url=jdbc:mysql://localhost:3306/your_database_name
spring.datasource.username=your_username
spring.datasource.password=your_password