All work

$ cd ~/work/glorious-publications

Next.js 14 · MongoDB

Glorious Publications

An online bookshop for a small publisher, selling printed and e-book editions, with an admin where the publisher manages titles, stock and orders.

Glorious Publications

00//the walkthrough

1½-minute walkthrough: the catalogue, search and filters, a book page, the page-flip preview, an order for two titles, then the admin dashboard and an order moved to processing.

3 screens · tap to enlarge

01//the problem

A small publisher needs to sell printed and digital editions without a large platform. Stock for printed copies has to stay accurate, prices can't come from the browser, and someone without technical skills has to be able to add books and work through orders.

02//the approach

Next.js 14 with MongoDB Atlas through Mongoose. The server prices every line of the cart and takes printed stock, refusing an order larger than the stock, so no price comes from the browser. The admin sits behind a passcode in a signed cookie, checked on every admin request.

03//what I built

01

Catalogue

Search by title or author, categories, price sorting and a filter for titles in print.

02

Book pages

E-book and hard-copy prices, copies left, related titles and a page-flip preview of the opening pages.

03

Checkout priced on the server

Every line is priced by the server, and printed orders larger than the stock are refused.

04

Admin dashboard

Sales and stock figures, low-stock alerts and best sellers.

05

Books and orders

Add, edit and delete books, and work through orders by status; cancelling a printed order puts its copies back.

// the impact

Print · e-book
Editions
Set on the server
Prices
Page flip
Preview

Glorious Publications is DevoraX client work. The live demo's catalogue is 13 public-domain classics with covers designed for it, in place of the publisher's own titles; checkout takes no payment and the orders are sample data. The 1½-minute video above walks through the catalogue, the page-flip preview, an order for two titles and the admin.

// let's build yours

Have a product like this in mind?

Chat on WhatsApp