BookHub is a comprehensive bookstore management system designed to streamline the operations of a bookstore, both online and offline. The application allows bookstore owners to manage inventory, track sales.
- Java
- Spring Boot
- Spring Data JPA
- Hibernate
- Thymeleaf
- MySQL
- Maven
- Inventory Management: Add, update, delete, and search for books.
- Sales Tracking: Record transactions, generate reports, and analyze trends.
- User Authentication: Secure authentication and authorization using Spring Security.
- Dynamic Web Pages: Rendered with Thymeleaf for a seamless user experience.
- Java Development Kit (JDK) 8 or higher
- Apache Maven
- MySQL
-
Clone the repository:
git clone https://github.com/yourusername/BookHub.git cd BookHub
-
Configure the database:
- Create a MySQL database named
bookhub
. - Update the
application.properties
file with your MySQL username and password.
spring.datasource.url=jdbc:mysql://localhost:3306/bookhub spring.datasource.username=yourusername spring.datasource.password=yourpassword
- Create a MySQL database named
-
Build the project:
mvn clean install
-
Run the application:
mvn spring-boot:run
-
Access the application: Open your browser and go to
http://localhost:1001
.
- Add Books: Navigate to the inventory section to add new books.
- Update Books: Select a book from the inventory to update its details.
- Delete Books: Remove books from the inventory.
- Search Books: Use the search functionality to find specific books.
- Record Sales: Navigate to the sales section to record transactions.
- Generate Reports: Generate sales reports for analysis.