Mocka - A Mock Server for Developers by Developers
summary
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
chapters (15)
- 0:00Introduction to Mocha
- 1:07Why we created Mocha
- 2:36Choosing a local server solution
- 3:59Why the name Mocha
- 5:05Design and development philosophy
- 5:49Tools and CI setup
- 6:53Embedding a server with Vapor
- 8:39Key features of Mocha
- 12:08Wildcard components and challenges
- 13:53Testing and debugging issues
- 15:40SwiftUI navigation and custom views
- 16:24Performance optimizations
- 18:33Live demo of Mocha
- 23:44Future features and thanks
- 24:47Open source and community
related talks
25mMock to start
39mMockolo: Efficient Mock Generator for Swift
31mThe power of mocking APIs
24mMocking made easy
33mGraphQL mocking and why it is important for developer productivity.
18mDesign, Debug, Test and Mock APIs with Kong Insomnia
50mContinuous API Mocking and Testing with Microcks, Keptn, and Testkube
27mReal World Mocking in Swift
