CT Leão de Judá
A website that gets people to book a first class, and a panel where the coach changes schedules, plans and photos without calling anyone.
- Role
- Design, development, content, SEO and launch
- When
- November 2026
- Team
- Solo, with the coach’s approval
- Status
- Finished and live
- 99 Lighthouse desktop performance, measured in production
- 100 in accessibility, best practices and SEO, on mobile and desktop
- 20 guides for people looking for Muay Thai on Google and AI assistants
- 20 days from the first commit to opening the site to search
A Gym That Relied on Word of Mouth
CT Leão de Judá teaches Muay Thai in Pirituba, in the north of São Paulo. People who knew the coach came by referral. Anyone searching Google for a class nearby had no page with schedules, prices and an easy way to book.
The request began as a website and grew. Schedules change, plans change, every grading brings new photos, and the coach could not depend on a developer for each update. Monthly fees also needed a home of their own.
The challengeBuild a good-looking, fast website that answers people searching for classes in the area, along with a panel simple enough to use on a phone between training sessions.
The Choices Behind It
- 01
First Class in One Tap
The “Book a free class” button follows visitors across the site. On mobile it stays at the bottom and opens WhatsApp with the message ready.
- 02
A Guide Instead of Repeated Pages
The Lion’s Guide has 20 texts, one per question: what a class is like, what to bring, Muay Thai or boxing, personal training nearby. They link to each other and lead to schedules and prices.
- 03
The Content Belongs to the Coach
Schedules, plans, notices, texts, photos and gradings are edited in the panel, with a preview alongside. Nothing reaches the site before publishing, and earlier versions can be restored.
- 04
The Site Does Not Fall with the Database
Every block has default content in the code. If the database is down, pages still open with the last known base.
- 05
Where Each Contact Came from
The form stores the source: Google search, Instagram, the map profile, WhatsApp or an AI assistant. The coach sees what brings students in.
- 06
Fees Calculated, Not Typed
Paid, open or overdue comes from a calculation over recorded payments. Nobody has to remember to change a student’s status when the month turns.
On Mobile
It is how most people look for a gym: schedules, plans and guides fit under the thumb, with the free class always at hand.
-
01 Home. The free class right on the first screen.
-
02 Why train. The booking button stays at the bottom.
-
03 Schedules. Stars mark the trial class days.
-
04 Plans. One plan at a time, with the button at hand.
-
05 Guide. The guides with search and filters on a small screen.
-
06 A guide. The summary answers where, when and how much before the text.
-
07 Contact. The form starts with the subject and stores where the contact came from.
The Site
The pages students see. The coach’s panel stays out: the gym’s internal screens are not public.
* Production screenshots of the site. Interface in Portuguese.
Under the Hood
A gym website looks simple. The care goes into being fast, staying up, treating student data well and keeping the owner in control.
Stack
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS
- PostgreSQL
- Zod
- Motion
- MinIO
- Cloudflare
- Docker
- Azure DevOps
Safeguards
- Data validated on the server, with messages in plain language
- Content security policy (CSP), HSTS and the other security headers on every page
- No Google script loads before cookies are accepted
- Panel kept out of search engines, with a record of who changed what
- Student data stays in the panel and never enters public pages
- Database migrations applied at startup, with a lock so they never run twice
Tests and Quality
- node:test
- TypeScript
- Lighthouse
- 49 tests with Node’s own runner: fees, schedules, notices, Pix payments, contact source, guides and emails
- Content checked before every build: a wrong link, image or text length stops the release
- Lighthouse in production, on November 24, 2026: 99 desktop performance and 100 in accessibility, best practices and SEO on both screens
What You Would Find in the Repository
A one-person project with the practices of a system that holds real people’s data. The code is private; below is what it holds and where.
Architecture
-
Content with a safety net
content/obter.tsWhat the coach publishes comes from Postgres. Whatever is missing comes from typed content in the code, so no page is ever empty.
-
Rules outside the screen
src/libFees, schedules, notices and Pix are pure functions, tested without a database or a browser.
-
Plain SQL
lib/db/migracoesHand-written queries and five small migrations. At this size, an ORM would add more weight than help.
Search and AI Assistants
-
Structured data
schema.orgGym, questions, breadcrumb and articles described in JSON-LD.
-
Text for AI
llms.txt · llms-full.txtThe site publishes a summary and a full text version of its content, updated along with the panel.
-
Typed guide
content/guiaThe 20 guides follow one format, which generates index, questions, links and sitemap.
Performance
-
Pages stored close to the reader
Cache-TagPages live in Cloudflare’s cache and are cleared when the panel publishes. Server response stayed between 20 and 40 ms when measured.
-
Photos at the right size
otimizar-imagens.mjsImages ship as AVIF and WebP, in several widths, at build time.
-
Less JavaScript on mobile
zod out of the public bundleThe validation library stays on the server and in the panel, out of public pages.
Delivery
-
Pipeline to production
Azure DevOpsEvery push builds the image, publishes it and checks the site’s health before finishing.
-
Lean image
Docker multi-stageMulti-stage build, with the process running without administrator rights.
-
Resource limits
512 MB · 1 CPUMemory and CPU are capped, so a traffic spike does not disturb its neighbors.
Where It Stands
The project is finished and live at ctleaodejudasp.com.br, open to search since November 24, 2026. The coach already has the panel, with traffic and search metrics inside it.
On mobile, the simulated slow-network test gave the home page 81 to 85 in performance. The large photo at the top is the next thing to lighten.
Have a Similar Project in Mind?
I like problems with real people on the other side. Tell me what you need.