This is a backend-focused Spring Boot project for an online book store. The project implements core functionalities such as user authentication, book management, shopping cart, checkout, order management, search/filter, error handling, security, logging, and documentation.
- Java 8
- Spring Boot
- Spring Data JPA
- Spring Security
- Hibernate
- Maven
- RESTful APIs
- MySQL (or your preferred database)
- Swagger (or OpenAPI) for API documentation
- Postman
- JWT
-
User Authentication and Authorization:
- Registration, login, logout
- Password hashing
- User roles (admin, regular user)
-
Book Management:
- CRUD operations for books
- Pagination, sorting, filtering
- Search by title, author, category
-
Shopping Cart and Checkout:
- Add/remove items from cart
- Update quantities, calculate totals
- Checkout process with order summary
-
Order Management:
- Place orders, view order history
- Update order status, generate invoices
-
Security and Data Privacy:
- Input validation, error handling
- SQL injection prevention, data encryption
-
Documentation:
- Swagger/OpenAPI for API documentation
- Readme file with project overview, setup instructions
-
Clone the repository: git clone https://github.com/SaiD-MH/Online-BookStore-RestAPIs.git
-
Navigate to the project directory: cd Online-BookStore-RestAPIs
-
Build the project using Maven: mvn clean install
-
Run the application locally: mvn spring-boot:run
-
Access the API documentation:
- Open your browser and go to:
http://localhost:8080/swagger-ui.html
6.access the application in your browser:
- Open your web browser and go to:
http://localhost:8080
## Deployment
- By default, the application uses an in-memory H2 database for local testing.
- For production or persistent storage, configure a MySQL or PostgreSQL database by updating the
application.properties
file with the database URL, username, password, and other settings.
Contributions to this project are welcome. Please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License.