Reproxy: Mock Server for Mobile App Development
Article Summary
Ahmad Fadli from Traveloka's Experience team built a mock server that freed his mobile team from backend API dependencies. What started as a simple workaround evolved into a tool now used across product teams.
Mobile teams often get blocked waiting for backend APIs during development and testing. Traveloka's Android engineers tried multiple approaches (runtime value changes, abstraction layers, in-app mocks) before creating Reproxy, an Express.js-based mock server that runs locally with zero-rebuild JSON configuration.
Key Takeaways
- Rule-based JSON config enables partial mocking without app rebuilds or code changes
- Only requires changing base URL to switch between mock and production APIs
- JS_SCRIPT type allows custom logic without bloating core files
- Now used for automation tests, stakeholder demos, and cross-platform development
Critical Insight
Reproxy eliminated backend dependencies for mobile testing through a flexible, rule-based mock server that requires minimal app code changes and no rebuilds.