BookVerse - A Digital Bookstore
BookVerse is a digital bookstore built with Spring Boot for managing and storing book details digitally. This application provides RESTful APIs for handling book entries and a user-friendly interface for seamless book management.
Prerequisites
Before you begin, ensure you have the following installed:
-
Java Development Kit (JDK) 11+
Download JDK -
Apache Maven
Download Maven -
MySQL/PostgreSQL Database(Choose based on your project needs)
MySQL Download
PostgreSQL DownloadGit (optional, for version control)
Download GitSpring Boot CLI (optional, for Spring Boot commands)
Spring Boot CLI Installation
Setting Up the Project
-
Clone the repository
If you're using Git:git clone https://github.com/your-username/bookverse.git cd bookverse -
Set Up the Database
-
Install and configure MySQL/PostgreSQL. Create a database for the project: sql CREATE DATABASE bookverse_db;
-
Update your database credentials in the
application.propertiesfile:spring.datasource.url=jdbc:mysql://localhost:3306/bookverse_db spring.datasource.username=your-username spring.datasource.password=your-password spring.jpa.hibernate.ddl-auto=update
-
-
Build the project
Use Maven to build the project:mvn clean install
-
Run the Spring Boot Application After building, run the project with Maven or Spring Boot CLI:
mvn spring-boot:run
Or, alternatively:
java -jar target/bookverse-0.0.1-SNAPSHOT.jar
-
Access the Application Once the server is running, access the application at:
http://localhost:8080
API Endpoints
- GET /books – Retrieves all books.
- POST /books – Adds a new book.
- PUT /books/{id} – Updates an existing book.
- DELETE /books/{id} – Deletes a book.
Technologies Used
- Backend: Spring Boot
- Database: MySQL/PostgreSQL
- Build Tool: Maven
- Frontend: Thymeleaf (or React/Angular)
- REST API: Spring Data JPA, Spring MVC
Contributing
If you'd like to contribute to BookVerse, feel free to create a pull request or open an issue.
License
This project is licensed under the MIT License.