← Home

~/projects/pacxpuctanno

pacxpuctannoРАСХРИСТАННО

The official site of my own clothing brand — catalog, lookbook, a T-shirt designer and a custom admin panel, built and run solo.

Overview

Period
Mar 2026 – Apr 2026
Team
Solo
Status
In production
Responsibilities
  • Planning
  • Design
  • Backend
  • Frontend
  • Infra & CI/CD
  • Operations
Stack
  • React
  • Go
  • Gin
  • PostgreSQL
  • Redis
  • templ
  • sqlc
  • Docker
Process
Spec and implementation plan written with Claude Code before coding (kept in the repository).
Visit site ↗

Problem

My clothing brand, РАСХРИСТАННО, needed a site that carries its visual identity as it is. Products come out as limited drops, so I had to be able to add and rotate products — and change how the home page looks — quickly and on my own, from an admin panel rather than in code.

Sales happen through Telegram and Avito, so the site deliberately has no cart or checkout.

Solution

Home page: hero carousel and the new drop

The home page combines a cross-fading hero carousel, a marquee, the current drop, bestsellers and the brand’s philosophy.

Catalog: products filtered by category

The catalog can be filtered by category. From a product page, visitors buy on Avito or ask a question on Telegram.

Product page: image gallery, price, stock and purchase buttons

T-shirt designer: dragging sketches onto the shirt

The T-shirt designer (/create) lets visitors drag and drop sketches, pick colour, texture and size, and export the result as a PNG. Designs can be saved to a personal account — sign-in is a one-time code by email — along with favourites.

Home page on a smartphone

On phones the layout switches to a dedicated mobile version, and the designer gets a bottom tab bar.

Behind the scenes, a server-rendered admin panel built with templ manages products, drops, site settings, users, analytics, designer assets and customers, with live logs right in the browser.

Architecture

System overview: browser → Traefik → Go binary → PostgreSQL, Redis, image storage Browser React SPA · T-shirt designer Traefik TLS · Let's Encrypt Go binary (Gin) SPA (go:embed) + OG injection REST API · templ admin PostgreSQL sqlc · goose Redis sessions Images optimised
System overview

The storefront (React 18 + Vite), the admin panel (templ + Tailwind CSS) and the backend (Go 1.25 + Gin) live in one monorepo. A multi-stage Docker build compiles the frontend and the admin CSS and embeds both into the Go binary with go:embed, so production runs exactly one binary.

Data lives in PostgreSQL 16 (pgxpool + sqlc) and sessions in Redis 7 (24 hours for admins, 30 days for users). Migrations are written for goose, embedded in the binary and applied on startup. Uploaded images are optimised on the server (JPEG with a 1200px long side, plus a 1200×630 version for OG), and a push to main triggers a GitHub Actions deploy.

Technical highlights

An SPA serves the same HTML for every page, so a shared link would show an empty preview in messengers. Before serving index.html, the Go server injects the OG title, description and image configured in the admin panel (cached for 60 seconds). On product pages, React also emits per-product OG tags and Schema.org JSON-LD.

Type-safe SQL without an ORM

All ~85 queries are plain SQL, and sqlc generates the Go code for them. Nothing is hidden behind an ORM, and type mismatches surface at build time. Code generation is part of the Docker build.

The T-shirt designer

Sketches can be dragged freely around a canvas, colours and textures switched, and the finished design exported as a PNG. On phones the controls collapse into a bottom tab bar so the canvas keeps as much of the small screen as possible.

Security and privacy

Site settings and third-party secrets are stored encrypted with AES-256-GCM. The built-in analytics records IP addresses only as SHA-256 hashes, and passwords are hashed with bcrypt.

Easy to operate

Every request gets an X-Request-ID, and zap writes structured logs. The latest 5,000 log entries are kept in a ring buffer and shown in the admin panel, so problems can be traced without logging in to the server.

Retrospective

Packing everything into one binary made deployment and the server setup very simple. The price is that even a small frontend-only fix requires rebuilding the server.

The UI also ended up split into two stacks — React with plain CSS for the storefront, templ with Tailwind for the admin — so components cannot be shared. That is the next thing I would address.

Development followed specs and implementation plans written with Claude Code. The designer’s mobile tab bar, for example, has its spec and plan in the repository and was built in small, separate commits.

3D avatar of Eric Bamba