ADRIAN.HRUSKAAH
SKEN
← All projects

Case study · 01 / 04

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

Year
2026
Status
Live
Type
E-shop, admin and invoicing
Stack
Next.js · React · TypeScript
The crretail.sk homepage with the headline “Everything for your car in one place” and links to the e-shop and towing.
Fig. 01 — crretail.skHover for the original

[ 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

The crretail.sk homepage with the headline “Everything for your car in one place” and links to the e-shop and towing.
Fig. 01 — Home
The crretail.sk e-shop with categories, filters and products.
Fig. 02 — E-shop
The 24/7 towing page with the phone number and a tow truck illustration.
Fig. 03 — Towing 24/7

[ 03 / 04 ] · How it is built

How it is built

  1. 01

    Next.js (App Router) with React and Tailwind CSS. Data lives in PostgreSQL through Prisma.

  2. 02

    Prices and stock are always recalculated from the database at checkout. The server ignores values from the browser.

  3. 03

    Payments go through Stripe Checkout: card data never touches the server, and only a verified webhook marks an order as paid.

  4. 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.

  5. 05

    Admin sign-in: bcrypt, a signed JWT in an HttpOnly cookie, a lockout after five failures and optional TOTP two-factor.

  6. 06

    Uploaded photos pass through sharp and are stored as WebP, which strips EXIF and GPS data.

  7. 07

    Cloudflare Turnstile, a honeypot field and a per-IP rate limit protect the contact form.

  8. 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

#e-shop #admin #invoicing #towing

Visit crretail.sk (opens in a new tab)

Want something similar? Email me.