Youth Football Research
A survey shaped like a football match, with two halves and a halftime, that measures the real pain of people in youth football without pitching any idea.
- Role
- Product, design and full-stack development
- When
- October 2026
- Team
- Group of 4 MBA students
- Status
- Live, in field testing
- 4 audience profiles, each with its own script
- 3–7 min to answer, depending on the profile
- 2 halves plus a halftime for anyone who wants to stop midway
- Versioned each answer is checked against the questionnaire the person saw
Listen Before You Build
The capstone of the AI MBA at FIAP asks each group to prove, with real people, that there is a problem worth solving. Ours is youth football in Brazil: coaches, football school owners, parents and athletes.
The first round ran on Google Forms. It covered the basics, but with the same script for every profile and no way to tell which group each answer came from.
The challengeReplace the form without losing comparability with the first round, while digging deeper into each profile's pain and never leading the answer.
Six Choices That Shaped the Research
- 01
A Match, Not a Form
The survey has a first half, a halftime and a second half, and the progress bar is drawn as the pitch. At halftime people can stop right there, and the first half still counts.
- 02
A Neutral, Comparable First Half
First-half questions keep the same identifiers and options as the Google Forms round. Both datasets add up with no cleanup and no bias from a reworded question.
- 03
Measure the Pain, Don't Sell the Idea
The second half shows no product. It asks which problem weighs the most, how often it shows up, what it costs in hours or money and what people already tried. It is The Mom Test: talk about the past, never about a hypothetical solution.
- 04
Real Research Methods
Importance versus satisfaction (Ulwick's method) builds the opportunity ranking, and the Van Westendorp price scale only shows up for whoever makes the buying decision. The team dashboard computes both on the fly.
- 05
"You Said"
When people describe the pain in their own words, the next questions quote them back. No AI involved: it is an excerpt of what they wrote, which keeps the conversation personal and never makes anything up.
- 06
Anonymous by Default
Identifying yourself is optional and comes last. Before sending, people review and change any answer, and can download a PDF of everything they said, generated right in the browser.
The Survey, on Mobile
Almost everyone answers on their phone, from a link shared in a WhatsApp group. So every screen was designed for the thumb first.
-
01 Welcome. No sign-up, no sales pitch, anonymous answers: all said before the first question.
-
02 Profile. Four profiles, each with its own script and estimated time.
-
03 Question. Multiple choice, with the progress bar drawn as the pitch.
-
04 Halftime. Halftime: anyone who has helped enough can stop here and lose nothing.
-
05 Scale. Importance from 1 to 5, the basis of the opportunity ranking.
-
06 Review. Before sending, every answer can be reviewed and changed.
The Team Area
The research does not end when the answer is sent. Behind its own login, the team area turns responses into the material the MBA asks for at each milestone.
* Screenshots of the live product, with the dataset still in field testing. On the milestones screen, the professors' feedback was hidden.
Under the Hood
A public form on the internet attracts bots and repeated submissions. The survey shipped with protection at the door and automated deploys.
Stack
- Next.js 16
- React 19
- TypeScript
- PostgreSQL
- Zod
- Motion
- jsPDF
- Docker
- Azure DevOps
- Traefik
Safeguards
- Rate limit of 5 submissions per IP every 10 minutes
- Honeypot field for bots, and submissions faster than 15 seconds are discarded
- Every answer validated on the server against the profile's questionnaire
- Questionnaire versioned in the database: editing a question never breaks comparison with older answers
- Team area with scrypt-hashed password, CSP and security headers
- Push to main, Azure DevOps pipeline and a container behind Traefik
Tests and Quality
- TypeScript
- Playwright
- TypeScript type checking inside the build of every push: a type error never reaches production
- End-to-end flow checked with Playwright in a real browser: all four profiles up to the review step, without submitting answers
- No automated test suite in the repository yet; it is the next step before the public launch
What You Would Find in the Repository
A small, one-person project, built with the care of a system that receives data from real people. The code is private; below is what it holds and where.
Architecture
-
Questionnaire as data
questions.ts · questionario_versoesThe questions for the four profiles live in their own module, and each version published in the database stores only what changed: disabled questions and new ones.
-
Rules outside the routes
src/lib · src/app/apiValidation, pain classification, exports and session live in src/lib. API routes only orchestrate.
-
Lean container
Dockerfile · USER nextjsNext standalone build, multi-stage image, unprivileged user and a health check.
Types and Validation
-
Two-layer validation
envioSchema · respostasValidas()Zod checks the shape of the submission. Then each answer is checked against the questionnaire version the person saw: known questions only, existing options only, nothing outside the flow.
-
Cross-field rules in the schema
.refine()Whoever leaves an email or WhatsApp must give a name, and whoever asks for a follow-up must leave a contact.
-
Types checked in the build
strict · next buildStrict TypeScript, checked inside the build on every push: a type error never reaches production.
Database
-
Constraints in the database itself
CHECK (perfil IN …)The profile column only accepts the four valid values, even if someone writes outside the app.
-
Additive, re-runnable migrations
IF NOT EXISTSEach change only adds, and the script can run again without errors. The live version does not break during deploy.
-
One draft at a time
partial index · FOR UPDATEA partial unique index allows at most one questionnaire draft, and publishing locks the row inside a transaction.
-
Contact kept apart from answers
contatos · ON DELETE CASCADEName and contact sit in another table, so everything can be deleted at the end of the course without losing the answers.
Security and Privacy
-
IP stored only as a hash
ip_hashThe address becomes a salted SHA-256 hash before it is saved. Repeat submissions can be throttled without keeping who answered.
-
Signed session
scrypt · HMAC · timingSafeEqualPassword hashed with scrypt, HMAC-signed cookie and constant-time comparison. Changing the password ends every open session.
-
Every route checks the session
exigirSessao()The check does not rely on the layout: every internal page and route calls the same function.
-
Spreadsheets without formulas
exportar/route.tsA cell starting with =, +, - or @ is neutralized before going into the CSV, so it never runs as an Excel formula.
-
Security headers
next.config.tsCSP, HSTS, iframe blocking and the team area kept out of search.
Delivery
-
Shared pipeline
Azure DevOps · templatesDeploy uses the same pipeline templates as the other projects: build, image and release on every push to main.
-
Configuration from the environment only
process.envDatabase, hash salt and team credentials come from environment variables. No secrets in the repository.
Where It Stands
The survey is live and being tested by the group before it goes out. Each WhatsApp group gets its own link, and the dashboard shows where every answer came from.
The team area already tracks the MBA milestones and produces the numbers for the next stage straight from the database, with no spreadsheet in between.
Have a Similar Project in Mind?
I like problems with real people on the other side. Tell me what you need.