A shop that takes the order, invoices it and sends the e-mail.

[ 01 / 04 ] · About the project
The website for CROSSROADS RETAIL: an e-shop for motor oils, a 24/7 towing page and an admin panel that manages products, orders and invoices.
The business needed one place for online sales and for its towing service. Customers buy without an account: they pick a pack size, add it to the cart, fill in an address and pay by card through Stripe, on delivery or by bank transfer. They check an order with its number and their e-mail.
The other half of the project is the admin panel. The shop owner searches and bulk-edits products, imports and exports CSV, changes order statuses, keeps internal notes and enters tracking numbers. The system issues a numbered PDF invoice by itself, and an editor with a preview lets the owner adjust it.
The towing page assumes you are standing at the side of the road: a large tap-to-call button and a way to send your location.
08
Key points
11
Technologies
03
Screenshots
2026
Year
[ 02 / 04 ] · Gallery
In the wild
Screenshots from the live crretail.sk site



[ 03 / 04 ] · How it is built
How it is built
- 01
Next.js (App Router) with React and Tailwind CSS. Data lives in PostgreSQL through Prisma.
- 02
Prices and stock are always recalculated from the database at checkout. The server ignores values from the browser.
- 03
Payments go through Stripe Checkout: card data never touches the server, and only a verified webhook marks an order as paid.
- 04
pdf-lib generates the PDF invoices and Nodemailer sends the e-mails. E-mail texts are edited in the admin panel, with a preview and a test send.
- 05
Admin sign-in: bcrypt, a signed JWT in an HttpOnly cookie, a lockout after five failures and optional TOTP two-factor.
- 06
Uploaded photos pass through sharp and are stored as WebP, which strips EXIF and GPS data.
- 07
Cloudflare Turnstile, a honeypot field and a per-IP rate limit protect the contact form.
- 08
Tyres sync from the supplier’s B2B interface within its daily limits.
[ 04 / 04 ] · Technologies
Stack
Front-end
- Next.js
- React
- TypeScript
- Tailwind CSS
Back-end
- PostgreSQL
- Prisma
- Stripe Checkout
- pdf-lib
- Nodemailer
- sharp
Tools
- Cloudflare Turnstile
Tags
