Skip to content

Customer Portal

Portal for customers and staff

At my employer I build a customer portal, frontend and backend, with accessible components and tests on both sides.

Role
Full-stack engineer
Period
May 2025 – Present
Category
Company work
Tech stack
Next.js, React, TypeScript, Redux Toolkit, HeroUI, React Aria, Tiptap, TanStack Table, React Hook Form, Zod, Tailwind CSS, Python, Django, Django REST Framework, Simple JWT, PostgreSQL, Jest, Testing Library, Playwright, ESLint, ruff, mypy

Results

automated tests
625
382 on the server and 243 in the client; counted on 25 November 2026 in the code
uses of any in the client
0
Strict TypeScript; counted on 25 November 2026
database migrations
166
Django, each schema change as its own step; counted on 25 November 2026
The name “Customer Portal” in large white type on black, with an orange dot.

Problem

Customers and staff need one place on the web where each person signs in and sees what their account allows. The portal has a part for customers and a part for staff.

Architecture

Client. Next.js 16 and React 19 in strict TypeScript, exported as static files. Redux Toolkit Query loads the data, keeps a copy and loads it again after a change. The interface is built on HeroUI and React Aria, which bring keyboard and screen reader behaviour with them. Tiptap edits formatted text, and TanStack Table runs data tables.

Server. Django and Django REST Framework on PostgreSQL. Permission classes decide who may use an endpoint. Changes that touch several tables run in one transaction, and lists load their related rows up front instead of one by one.

Sign-in. Simple JWT issues the tokens. When a token has expired, one request renews it, and the others wait until that is done.

Infrastructure

Delivery. The client is a set of static files, so only the API runs code on the server. The database schema changes only through migrations.

Checks. On the client: strict TypeScript, ESLint with the SonarJS, unicorn, Tailwind and Testing Library rules, and Prettier. On the server: ruff, and mypy with the Django plugin.

Tests. Jest and Testing Library test components and hooks, Playwright tests the app in a browser, and Django’s own test framework tests the server.

Outcomes

  • The client is written in strict TypeScript, without a single any.
  • When a sign-in token expires, one request renews it; the waiting requests go out after that.
  • Dialogs, menus and form fields take their keyboard and screen reader behaviour from React Aria.

My part

I build the portal on both sides: the pages and components in the client, and the API, the data model and the permissions on the server.

How I work

I write strict TypeScript, let linters and type checks run on both sides, and test components, flows in the browser and the server.

Terms used here

REST API
Addresses on the server that a client calls over HTTP to read or change data.
Static export
The pages are built once as files, so a simple web server can deliver them.
RTK Query
The part of Redux Toolkit that loads data from an API and keeps a copy of it in the browser.
JWT
A signed token that shows who is signed in. It expires after a while and is then renewed.
React Aria
React building blocks from Adobe with keyboard and screen reader behaviour built in.
Migration
A small file that changes the database schema by one step, so every copy of the database ends up the same.

Building something similar?

Tell me what you’re working on. I reply within 24 hours.

Discuss a similar project