A full-stack online bookstore where readers discover and buy books, authors publish and manage their catalogue, and admins run the whole store — with local AI built in.
Role-based access with Spring Security gives readers, authors and administrators their own tailored workspace.
Browse a curated catalogue, save favourites, check out in a few clicks and track every order — all from one personal account.
Search, filter and open detailed pages for every title.
Promo codes, card or cash on delivery, and instant receipts.
Save books for later and move them to the cart in one tap.
Write, edit and manage reviews — with AI sentiment tags.
Follow status updates and download receipts anytime.
Raise support tickets and read store announcements.
Authors join by invite token, get a dedicated dashboard, and submit new titles for admin approval — with an AI editor polishing their synopses.
See your published books and their performance at a glance.
Submit new titles that go to an admin approval queue.
Turn a rough blurb into a polished, retail-ready synopsis.
Edit biography, photo and settings readers will see.
Secure author registration via admin-issued tokens.
Award-winning authors featured on the store homepage.
Full control of the store: inventory, people, orders, promotions and customer support — from a single command centre.
Add, edit, archive, restore and approve author requests.
Promote, demote, revoke and archive accounts.
Update statuses — customers are emailed automatically.
Create and toggle percentage-off discount campaigns.
Publish store-wide news to every reader.
Resolve customer tickets and moderate reviews.
Nexus talks to a locally hosted LLM through Ollama — no cloud APIs, no data leaving the server. Click a feature to see it in action.
phi3Readers ask questions in plain English and get answers grounded in the live inventory.
llama3Authors paste a rough draft; the AI editor rewrites it into a captivating retail blurb.
llama3Every review is auto-classified POSITIVE, NEUTRAL or NEGATIVE to help admins moderate.
llama3Condenses all reviews of a book into one summary, and drafts apology emails for unhappy readers.
Illustrative demo. In the app, requests go to localhost:11434/api/generate via OllamaService.
Every purchase flows through a real pipeline — with discounts, polymorphic payments, file-based receipts and email notifications.
Pick books from the catalogue or your wishlist.
Admin-managed codes knock a percentage off.
Card or cash on delivery via the Payment interface.
A receipt file is written and emailed as an attachment.
Status changes trigger update emails to the reader.
==========================================
NEXUS BOOKSTORE RECEIPT
==========================================
Order ID : NX-128
Date : 2026-08-25 13:12:10
Payment Method : COD
Status : PROCESSING
------------------------------------------
Recipient : Sample Customer
Delivery To : 123, Galle Road, Galle
Contact No : 07X XXX XXXX
------------------------------------------
TOTAL PAID : LKR 5800.0
==========================================
Thank you for shopping!
Developed by Group WD130
==========================================
receipt_order_<id>.txt to disk — downloadable from order history.EmailService sends order confirmations with the receipt attached, plus status updates.Built as an OOP coursework project — each principle shows up in real, working code.
Entities like User and Book keep fields private behind getters and setters.
The Payment interface hides how a payment is processed from the checkout flow.
Repositories extend JpaRepository, inheriting full CRUD behaviour for free.
CardPayment and CashPayment override processPayment() differently.
// Abstraction public interface Payment { String processPayment(Double amount); }
// Polymorphism public class CardPayment implements Payment { @Override public String processPayment(Double a) { return "CARD"; } }
// Inheritance public interface BookRepository extends JpaRepository<Book, Long> { // save, findAll, delete… // inherited for free }
A classic Spring MVC design keeps each responsibility in its own layer — easy to test, extend and divide across a team.
Server-rendered pages styled with Bootstrap 5.
36MVC pages plus REST endpoints under /api.
Orders, carts, promos, email and AI integration.
10Spring Data JPA over Hibernate entities.
12Relational store, auto-migrated schema.
13Led by a tech lead who built the core of the platform, with each teammate owning a focused module on their own Git branch, merged through pull requests.
Directed the technical architecture and developed the core management modules, implementing advanced features including a reactive checkout, a Strategy Pattern payment gateway and dual-model AI integration. Built the rest of the platform end to end.
Engineered the core data classes, entities and backend architecture for the Author portal.
Dynamic promo code discount engine, validation logic and cart recalculation.
Implemented featured authors and handles global announcements and user notifications across the platform.
Handles the creation, storage and management of user-specific wishlists.
Planning and architecture for the future customer support ticketing module.