API Design in Node.js with TypeScript
Design an API other people can rely on
Who it is for. Developers working in JavaScript or TypeScript who ship services and carry a suite they no longer trust: slow to run, heavy with mocks, and green on the morning production broke. You write Node for a living or want to; you have never built a Nullable.
The path
Each step is built around doing the work, with a facilitator who asks rather than lectures. Read about how we teach
- 1
Week 1, Shape: what an API says before it does anything
Resources rather than verbs, and the representation on the wire: what a resource is, in JSON, with times that carry their zone. Status codes that mean something, 201 with a Location, and validation at the edge with typed schemas. The first endpoint driven test first against the real Fastify application, and the first theory island: what the event loop actually does, and why Node answers many clients with one thread.
- 2
Week 2, Seams: the database, the clock and the outside world
A deadline is a rule about time, so time becomes something you command rather than wait for. Build Nullable infrastructure in Shore's sense: create_null with configurable responses and output tracking, for the store, the clock and the notifier. Your tests run in milliseconds against your own code, not against a mock of it. Island: the module system, and where a seam wants to live in it.
- 3
Week 3, The hard parts: conflicts, repeats and errors
Two people claiming the last of something, and the same request arriving twice: conflict and idempotency, the two problems every real API meets and most tutorials skip. Errors as a contract rather than a stack trace, in the problem details shape. Authorisation that answers who may read whose record, and the design decision hidden inside a 404.
- 4
Week 4, Keeping it honest: architecture, evolution and shipping
An architecture test that forbids a route from touching the database, so the layering survives the next hurried change. Narrow integration tests against a real Postgres, pagination and filtering, and adding a field without breaking a client. Island: streams and backpressure, for the day a response stops fitting in memory. Then you ship it, and read your own API back as a stranger would.
What you leave with
Taught live in a small group, remote over video, inside EkoFlow, our open source development environment.
- Twelve evenings over four weeks, three evenings a week, live in a small group over video
- One real API, designed and shipped by you in Fastify and TypeScript, with the awkward parts nobody writes about, conflicts, repeats and the rules that depend on time
- Every line written test first, with no mock anywhere: the database, the clock and the outside world become Nullables you can command
- Islands of Node theory when the code needs them: the event loop, the module system, streams
- Your code reviewed by a person between sessions, the way a strong team reviews
- An architecture test that keeps the design honest after you stop looking
- The Solo plan on this platform, yours forever
Your teacher
Anastasios Orfanidis
Founder and lead teacher
Anastasios spent thirteen years shipping production software for regulated clients before founding EkoHacks.
He wrote EkoLite and the EkoHacks CLI, built this dojo, and teaches test driven development and testing without mocks the way he works himself.
“EkoHacks has been innovative and mind changing. It tweaks the way we learn, where we think about speed first rather than understanding what our code is doing. It's no longer about speed and ending up in chaos.”
The Solo plan on this platform, yours forever. Your course work itself earns your belt: merged pull requests, green builds and streaks pay XP from the first week.
After you book
- 1
Your receipt, straight away
Paddle, our merchant of record, takes the payment securely and emails your receipt.
- 2
A message from a person
Within 2 working days we write with everything you need to start: the video link, the team board and how to set up.
- 3
After the last session
Your fork, your belt and your certificate stay yours, with the Solo plan on this platform.
€120 once
Starts when the group is full; write to us for the date
Prices include VAT. Change of mind and cancellation terms are on the refunds page.
Every seat bought here is taught online, live over video. If you hold a Greek training voucher, write to us and we will arrange your place directly. connect@ekohacks.com
€120