HSI Pro
An IT reseller's online shop: public prices, professional rates after validation, in French, English and Arabic.
An IT reseller had to sell to both individuals and companies, with different rates depending on the customer, and without professional prices being visible to everyone. The home page content had to change without a developer, in three languages including Arabic, written right to left.
A platform where public prices, professional rates (after the company is validated) and quantity tiers are enforced on the server. Sign-up uses a one-time code, baskets can be shared within a company, and a visual editor lets the owner change the home page with a live preview before publishing.
Results
- 406
- tests passing
- 3
- languages including Arabic
- 48
- data models
- 184
- pages compiled
From the interface down to the data
01
Interface
Next.js 15 (App Router, Server Components, Server Actions), React 19, in French, English and Arabic with right-to-left rendering.
02
Data
PostgreSQL 16 with full-text search and Prisma 7: 48 models. Public, professional and tiered prices are decided on the server.
03
Background jobs
pg-boss on the same database, no Redis: emails, proforma expiry, reminders. A single component to run.
04
Documents and emails
Business PDFs (quotes, proformas, delivery notes, credit notes, statements) with multilingual labels and a verification QR; emails through React Email and SMTP.
Engineering decisions
The choices worth defending, and why.
- 01
The price is decided on the server, never in the interface
A rate merely hidden in the page stays readable by anyone who opens the browser tools. Public prices, professional rates reserved for validated companies and quantity tiers are therefore computed and filtered on the server, including for a guest basket carried over at sign-up.
- 02
Background jobs with no extra infrastructure
Email sending, proforma expiry and reminders go through pg-boss, which uses the PostgreSQL database already in place. No Redis, no second service: fewer parts to watch, and a queue that benefits from the database's transactions.
- 03
A home page editable without a developer, without breaking the public page
The three-tab editor (sections, style, identity) customises text, desktop and mobile images, buttons, section order and navigation, in three languages. The private preview shares the public rendering, with zoom, undo/redo, and a draft kept separate from publication: you see it before you publish.
- 04
Arabic text that displays correctly, everywhere
The interface and the PDF documents handle right-to-left reading, with an Arabic font embedded under a free licence. The same care applies to the labels of quotes and statements.
Tech stack
- Next.js 15
- React 19
- TypeScript
- PostgreSQL 16
- Prisma 7
- pg-boss
- react-pdf
Other projects
in productionFleetOra
B2B SaaS · own product
in productionBioInteraction DZ
Website & technical catalogue · client
delivered locallySuivi Commercial
Internal application · client
in serviceBio Réactifs
Desktop applications · internal tools
in progressCabinet Médical
Business SaaS · client demonstrator
in local testingSocialPlug
Publishing tool · personal use