A full-stack online bookstore web application built with Spring Boot (backend) and Next.js (frontend). The platform allows users to browse and purchase books, chat with an AI assistant, and provides an admin panel for managing orders and content.
- Register and log in securely
- Passwords are hashed and stored securely
- JWT-based authentication
- Browse all available books
- View book details
- Add books to cart and checkout
- Order history for users
- View and manage all orders
- Add, edit, and delete books
- (Optional) Manage users
- Integrated chatbot powered by AI (e.g., ChatGPT)
- Users can ask for book recommendations, help with the site, or general inquiries
Layer | Technology |
---|---|
Frontend | Next.js (React) |
Backend | Spring Boot (Java) |
Database | PostgreSQL / MySQL |
Auth | JWT |
AI Chatbot | OpenAI API (or similar) |
/controllers
– REST API controllers/models
– JPA entities likeUser
,Book
,Order
/services
– Business logic/config
– Security & JWT configurations
/pages
– Routing (e.g.,/books
,/login
,/admin/orders
)/components
– Reusable UI components (e.g.,Navbar
,ChatBotWidget
,BookCard
)/utils
– Helpers like API clients and auth handlers
Method | Endpoint | Description |
---|---|---|
POST | /api/auth/register |
Register a new user |
POST | /api/auth/login |
Login user |
GET | /api/books |
List all books |
GET | /api/books/{id} |
Book details |
POST | /api/orders |
Create a new order |
GET | /api/admin/orders |
Admin: list all orders |
Visit the deployed version of the app to explore features like book browsing, AI chatbot, and admin panel (if authorized).
- Payment gateway integration
- Book ratings and reviews
- Personalized recommendations
- Notifications system
- Navigate to the frontend directory:
git clone https://github.com/amirziyacode/Ai-BookStore
- Install Packages:
npm install --force
npm run dev
- Visit the app in your browser at:
http://localhost:3000