An online bookstore application built with Spring Boot. This project features user authentication, book browsing, and purchase functionalities, allowing users to search for and buy their favorite books. Users can add books to their shopping cart. The application is designed with a robust back-end.
- User authentication (registration, login)
- Search functionality
- Add books to the shopping cart
- Purchase books
- Spring Boot
- Spring Data JPA
- PostgreSQL
- Java 11 or higher
- Maven
- PostgreSQL
- Clone the repository:
git clone https://github.com/ashkanfrs/bookshop.git
- Navigate to the project directory:
cd bookshop
- Set up the PostgreSQL database:
CREATE DATABASE bookshop;
- Update the
application.properties
file with your PostgreSQL database credentials:spring.datasource.url=jdbc:postgresql://localhost:5432/bookshop spring.datasource.username=your-username spring.datasource.password=your-password spring.jpa.hibernate.ddl-auto=update
- Build the project:
mvn clean install
- Run the application:
mvn spring-boot:run
- The back-end server will start on
http://localhost:8081
. - Use tools like Postman or curl to interact with the API endpoints for user registration, login, book browsing, and purchasing.
Contributions are welcome! Please open an issue or submit a pull request for any changes.