A repository that implements a sustainable way for frontend development in the absence of API or unreliable response.
- miragejs is a library that helps you focus on frontend development regardless of API. API and DB can be defined directly in the front end, and API can be defined with less code.
- mapper: Module that converts API response from actual screen / component to the required format
- Use miragejs to run a mock api (not a real server) running on the client-side.
- Model each API and DB (json) based on the screen.
- Say goodbye to the backend and focus on front development.
- Once API development and specification creation (from the API server) are complete, API integration begins.
- Match the actual API response to the existing mock API response. → "Use mapper (implemented by the developer)"
- When the API response is modified, only the mapper is modified.
- If the API does not work, develop by running the existing mock api.