Skip to content

Implement mock API for GitHub Pages demo environment #176

@KaueReinbold

Description

@KaueReinbold

Is your feature request related to a problem? Please describe.
When deploying the reminder-app to GitHub Pages, the external API is not available, which breaks the demo and prevents users from testing the app's features.

Describe the solution you'd like
Implement detection for when the app is running on GitHub Pages and swap out all external API calls for a mock API implementation. This mock API should support all main features (e.g., CRUD for reminders) and display in the UI that a mock is being used. Also, provide instructions for running and testing the app with the mock API, both locally and on GitHub Pages.

Describe alternatives you've considered

  • Relying on the external API for all environments (not feasible if the API is not public).
  • Disabling functionality on GitHub Pages (less ideal for demos).

Additional context
This will help users and testers evaluate the reminder-app demo without backend dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew functionality or improvement.triageNeeds review and prioritization.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions