This is a full-stack Bookstore Management System using Spring Boot and Thymeleaf following MVC design pattern, with complete CRUD functionality and MySQL integration.
- Add a new book with title, author, price.
- View a list of all books
- Update book details
- Delete a book
- Responsive frontend using Thymeleaf
- Integrated with MySQL database
- Backend: Java, Spring Boot, Spring MVC, Spring Data JPA
- Frontend: HTML, CSS, Bootstrap, Thymeleaf
- Database: MySQL
- Build Tool: Maven
- Java 17+
- Maven
- MySQL installed and running
-
Clone the repository
git clone https://github.com/damon005/Bookstore.git cd bookstore -
Create the database
Mysql:
CREATE DATABASE bookstore_db; -
Configure DB credentials
Open src/main/resources/application.properties and update:
properties:
spring.datasource.url=jdbc:mysql://localhost:3306/bookstore_db spring.datasource.username=root spring.datasource.password=yourpassword -
Run the application
mvn spring-boot:run -
Access in browser http://localhost:8080/books



