~/talk

Mocka - A Mock Server for Developers by Developers

Talkat Swift Heroes Digital 2021 · 2021-04-15..04-16· [developer-experience, testing]
links:none on file
slides:none on file

Mocka is a macOS mock server app that actually embeds a Vapor HTTP server and stores routes as editable JSON files in a git-backed workspace, built with SwiftUI, Combine, Vapor. It serves JSON, HTML, TXT, CSV (images/PDF planned), supports a wildcard component for variable URL segments, and switches response files or status codes instantly. Performance tweaks cut list-tap latency from ~5s to 0.3s by splitting read/write views and using a drawing-group optimization; a custom buffered subject fixes missed console logs. Mocka is open source on GitHub.

AI-written summary · about

  1. 0:00Introduction to Mocha
  2. 1:07Why we created Mocha
  3. 2:36Choosing a local server solution
  4. 3:59Why the name Mocha
  5. 5:05Design and development philosophy
  6. 5:49Tools and CI setup
  7. 6:53Embedding a server with Vapor
  8. 8:39Key features of Mocha
  9. 12:08Wildcard components and challenges
  10. 13:53Testing and debugging issues
  11. 15:40SwiftUI navigation and custom views
  12. 16:24Performance optimizations
  13. 18:33Live demo of Mocha
  14. 23:44Future features and thanks
  15. 24:47Open source and community
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.