Skip to content

Lesson 26 of 32Resume and portfolio

Writing Project Case Studies

Turn a repo into a short, skimmable case study with a clear problem, your decisions, honest trade-offs and measured results.

13 min read0/5 questions

Two candidates built almost the same booking app. The first links to a repo whose README says "A booking app built with React and FastAPI". The second links to a one-page case study: the climbing gym that kept double-booking its training wall, the database constraint that fixed it, a screenshot, a small architecture diagram, and "4,000 bookings in four months, zero conflicts". The code is about as good in both. The second candidate gets the interview, and the interviewer arrives with three questions already written from the case study. A case study is how you turn finished code into evidence a hiring manager can read in three minutes, and into the script for your project deep dive.

The shape of a case study

Almost every good engineering case study follows the same seven parts. The order matters: a reader who stops after the first two still knows what you did and why it mattered.

A case study, top to bottom
  1. SummaryTwo lines: the problem and the result, with a number
  2. Problem and contextWho had the problem, what it cost them, why it mattered
  3. Your roleSolo or team, what you owned, how long it took
  4. ConstraintsTime, budget, users, devices, data, rules you had to follow
  5. Approach and key decisionsTwo or three decisions, each with the options you rejected
  6. ResultsNumbers, before and after, and what users said
  7. What I would do nextHonest limits and the next step

The summary is for the recruiter and the busy manager. If they read nothing else, they should know the problem, your part and the result.

1/5

Keep it short. A case study is 400 to 800 words, not an essay. Use the seven parts as headings so it can be skimmed, keep paragraphs to two or three sentences, and put a visual in at least every other section. If a section has nothing true to say (no real constraints, say), cut it rather than padding.

Decisions are where the depth is. For each one, write three things: what you chose, what you considered instead, and why. "I used a Postgres exclusion constraint instead of checking for overlaps in Python, because two requests arriving at the same moment could both pass a check in code" is a decision. "I used Postgres" is not; it is a stack item.

Trade-offs are honest costs. Every decision gives something up. "The constraint means the database must be Postgres, so I cannot swap to SQLite for local tests" is a trade-off. Writing it down tells the interviewer you understood your own choice, and it pre-empts the obvious question.

Put it in order7 steps

Put the sections of a case study in the usual order.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.

Mining your repo for the story

You already have most of the material. It is sitting in your commit history, issues, pull requests and notes. Before you write a word, collect it.

git log --oneline --reversegit log --grep="fix" --onelinegit log --stat --since="2026-03-01" --until="2026-03-31"git shortlog -sn

The first shows the project's story from the first commit. The second finds bug fixes, which are often your best stories ("the hardest bug"). The third shows what changed in a busy month. The last shows who committed how much, which is useful for a team project. As you read, write down:

  • Turning points: a rewrite, a library you dropped, a schema change. Each is probably a decision worth a paragraph.
  • Bugs that took more than a day. One good bug story is worth more than a feature list.
  • Numbers you already have: test count, a benchmark you ran once, a Lighthouse report, analytics, a message from a user.
  • Numbers you can still get. Run a load test now. Measure the page now. Count the rows. A result measured late is still a result, as long as you say when you measured it.

The README that sells

The README is the case study's smaller sibling. It lives in the repo, and it is what the engineer opens first. Resume and Portfolio covered what goes in one; here is a full template you can copy.

README.md
# Wallbook
 
Booking for a climbing gym's training wall, with no double bookings.
**Live:** https://wallbook.example.dev (demo login on the first screen)
**Case study:** https://sam-okafor.dev/projects/wallbook
 
![Booking calendar on a phone, showing two free slots](docs/screenshot.webp)
 
## What it does
- Members book 30-minute slots on the training wall from their phones.
- Instructors see the day's bookings and block slots for classes.
- Overlapping bookings are rejected by the database, not just the UI.
 
## Stack
FastAPI, Postgres 16, SQLAlchemy, React, Vite. Deployed on Fly.io.
 
## Architecture
![Browser to FastAPI to Postgres, with a worker sending reminder emails](docs/architecture.png)
 
## Run it locally
1. Copy `.env.example` to `.env`.
2. Run `docker compose up`.
3. Open http://localhost:5173 and log in as `demo@example.com` / `demo`.
 
## Tests
`docker compose run api pytest` runs 64 tests, including one that sends
two overlapping bookings at the same moment and expects exactly one to win.
 
## Decisions
- Exclusion constraint for overlaps instead of an application check (race conditions).
- Polling every 30 seconds instead of WebSockets: six users did not justify it.

The parts that do the most work: the one-line pitch (what it is and the hard part), a live link above the fold, one screenshot, how to run it in three steps, and a short "Decisions" list that acts as a trailer for the case study.

Visuals that earn their place

A case study without visuals is a wall of text. Each kind of visual answers a different question.

  • Screenshots answer "what is it?". Capture the main screen with realistic data, not an empty state or lorem ipsum. Crop to the useful part, export as WebP or compressed PNG, and write alt text that says what the image shows ("Booking calendar on a phone, two free slots"). Show the mobile view if mobile matters.
  • Short recordings answer "how does it feel?". Keep them under about 15 seconds and show one flow from start to finish. On your own site, a muted MP4 or WebM with controls is far smaller than a GIF; do not autoplay with sound, and respect reduced motion. GitHub can embed short videos you upload while editing Markdown, and GIFs work everywhere.
  • Architecture diagrams answer "how is it built?". Five to eight boxes and arrows: client, API, database, queue, worker, third-party services. Tools like Excalidraw make quick hand-drawn diagrams, and GitHub renders Mermaid diagrams written in Markdown code blocks. Label the arrows with what flows along them.
  • Before and after metrics answer "did it work?". A small table beats a paragraph.
MetricBeforeAfterHow measured
Double bookings per monthabout 40Gym's own log, March to June 2026
Time to book a slotabout 2 min (find sheet, find pen)15 sTimed with 5 members
API p95 latencyn/a80 ms at 50 req/sLocust, 10-minute run

The "How measured" column is what makes numbers believable. It also gives the interviewer a sensible follow-up question, which you can answer, because you did it.

Match the pairs0/4 matched

Match each question a reader has to the visual that answers it best.

Choose an item, then its match on the other side.

Team projects: "I" versus "we"

Most real work is team work, and interviewers know it. What they want to know is what you did. A case study written entirely in "we" hides you; one written entirely in "I" for a team project is dishonest, and the deep dive will expose it.

The rule: use "we" for the team's goals and outcomes, and "I" for your own work and decisions.

We were four students building a volunteer rota app for a food bank in ten weeks. I owned the scheduling API and the database schema; two teammates built the React app and one ran user testing. I proposed moving shift swaps into a queue after we lost swaps during a deploy, and implemented it with a teammate reviewing.

Be specific about shared work ("I paired with Priya on the auth flow") and credit others by name or role. If you are not sure whether you can say you did something, ask: could I explain it in detail and answer three follow-up questions? If not, it was "we".

Quick check
You were one of three people on a project. Which sentence is best for your case study?
Need a nudge? A hint rules out a wrong answer.

A worked example: before and after

Here is a typical first draft. It is not wrong, just empty.

before.md
# Wallbook
 
Wallbook is a booking app I made using React, FastAPI, Postgres, Docker,
SQLAlchemy, Redis and GitHub Actions. It has authentication, a calendar and
email notifications. I learned a lot about full-stack development and best
practices while building it. It was challenging but fun.
 
[GitHub](https://github.com/example/wallbook)

Every sentence is about technology or feelings; none says who it was for, what was hard or whether it worked. Here is the same project as a case study.

after.md
# Wallbook: ending double bookings at a climbing gym
 
**Summary.** The gym's training wall was booked on a paper sheet and
double-booked about four times a month. I built a booking app for its members
and six instructors. In four months it has taken 4,000 bookings with zero
conflicts.
 
![Booking calendar on a phone, two free slots highlighted](wallbook.webp)
 
## The problem
Members wrote names on a sheet by the wall. Instructors overwrote each other's
class blocks, and members arrived to find the wall taken. The head instructor
spent about an hour a week sorting out clashes.
 
## My role
Solo project, built over eight weeks of evenings in early 2026. The head
instructor was my product owner; I tested with five members.
 
## Constraints
- Most instructors use older Android phones, so the app had to be light.
- No budget: free or very cheap hosting.
- Bookings had to be correct even when two people booked at the same moment.
 
## Key decisions
**Overlaps are blocked by the database.** My first version checked for clashes
in Python before inserting. A load test showed two simultaneous requests could
both pass the check. I replaced it with a Postgres exclusion constraint on the
time range, so the second insert fails and the API returns a clear error. A
test now fires two requests at once and expects exactly one success.
 
**Polling, not WebSockets.** With at most a handful of people looking at once,
refreshing the calendar every 30 seconds was simpler to build, host and debug.
 
**No native app.** A small React web app installs to the home screen and
loads in about 1.2 seconds on a mid-range phone over 4G.
 
## Trade-offs
The exclusion constraint ties me to Postgres, so local tests run against
Postgres in Docker rather than SQLite. Polling means a slot can look free for
up to 30 seconds after someone books it; the database still rejects the
second booking, so the cost is a friendly error, not a clash.
 
## Results
| Metric | Before | After |
| --- | --- | --- |
| Double bookings per month | about 4 | 0 (March to June 2026) |
| Instructor time on clashes | about 1 hour/week | none reported |
| Time to book | about 2 minutes | 15 seconds |
 
## What I would do next
Calendar sync, the most requested feature. And proper monitoring: right now I
find out about errors from the head instructor.
 
[Live demo](https://wallbook.example.dev) · [Code](https://github.com/example/wallbook)

What changed: the title names the problem, the summary carries a number, the stack moved out of the spotlight, each decision names the alternative, the trade-offs are admitted, and the results say when they were measured. The technology is all still there; it is just in service of the story.

You can even lint a draft. This small checker flags vague words, missing numbers and "we" without "I":

Python
import re VAGUE = ["passionate", "various", "many", "improved", "helped", "worked on", "cutting-edge", "best practices", "lots of", "challenging"] def lint(text): issues = [] lower = text.lower() for word in VAGUE: if word in lower: issues.append(f"vague: '{word}'") if not re.search(r"\d", text): issues.append("no numbers: add a measured result") if " we " in f" {lower} " and " i " not in f" {lower} ": issues.append("only 'we': say what you did") sentences = [s for s in re.split(r"[.!?]\s+", text) if s.strip()] longest = max(len(s.split()) for s in sentences) if longest > 30: issues.append(f"a {longest}-word sentence: split it") return issues before = ("We worked on a booking app using various modern technologies and " "best practices. It improved the booking process for many users.")after = ("I designed the booking API and its Postgres schema. An exclusion " "constraint made double bookings impossible, and in four months the " "gym logged 4,000 bookings with zero conflicts.") for label, text in [("before", before), ("after", after)]: found = lint(text) print(label, "->", found if found else "clean")
Output
Press Run (⌘ Enter) to see what happens.

Paste your own paragraphs into before and run it. A word list is crude (it cannot tell whether a number is meaningful), but it catches the habits that make case studies sound like everyone else's.

Predict the outputPython

What does this print?

# using lint() from the block above
print(lint("We cut page load from 4.1s to 1.3s.")[0])
Need a nudge? Hints walk you through it.

Mistakes that sink a case study

  • Starting with the stack. "Built with Next.js, tRPC and Prisma" as the first line tells the reader nothing about why the project exists. The stack belongs in a small line near the end.
  • A tutorial retold. If the decisions in your case study are the ones the course made for you, the reader will notice. Write about what you changed and why.
  • Numbers with no source. "Handles 10,000 users" with no load test behind it is a claim an interviewer can take apart in one question. Say how and when you measured, or leave the number out.
  • Hiding the failures. The rewrite after your first approach broke is often the best part. A case study where everything went to plan reads as either untrue or too easy.
  • Confidential details. For work projects, describe the problem and your decisions at a level your employer would be comfortable with. No internal names, customer data, code or figures you were not cleared to share.
  • Writing it once and forgetting it. Update the results when you have new numbers, and add a date so readers know how current it is.

How interviewers use your case study

Your case study becomes the interviewer's script. In the project deep dive (see The Project Deep Dive), they will pick a decision you wrote about and push on it: why this, what else, what broke, what would happen at ten times the scale. That is good news. You chose what to write, so you chose the battlefield.

A deep dive that starts from your case study
InterviewerYouWhy a DB constraint, not a check in code?Race: two requests both passed the checkWhat does the user see when it fails?409 and a 'slot just taken' messageWhat changes at 100 gyms?Tenant id in the constraint, then...

They picked a decision straight from your case study.

1/6

So write only what you can defend for five minutes, keep the trade-offs section honest, and reread your own case study the night before every interview. Anything you mention, including every item in the stack, is fair game.

Quick check
Your case study says you 'improved performance'. What will a careful interviewer most likely ask?
Need a nudge? A hint rules out a wrong answer.
Key terms
case study
A short write-up of a project: problem, your role, constraints, decisions, trade-offs, results and next steps.
key decision
A choice you made between real alternatives, written with what you rejected and why.
trade-off
The cost a decision carries, stated openly, such as tying the project to one database.
architecture diagram
A small boxes-and-arrows picture of a system's parts and what flows between them.
before and after metric
A measured value from before and after a change, with how and when it was measured.
exclusion constraint
A Postgres constraint that rejects rows that conflict with existing ones, such as overlapping time ranges.