feature-flags-in-svelte-sample

Feature Flags In Svelte Sample

Showing the use of ConfigCat's Feature Flags in a Svelte Application

How to Implement and use Feature Flags in a Svelte Application

A sample application showcasing how to implement ConfigCat's Feature Flags in a Svelte Application

About Sample App A demo Svelte application with a simple feature that fetches that displays a random fact about cats each time a user visits or reloads the page. However, the feature is wrapped with a feature flag, so users can only see it when the feature flag is toggled on. Otherwise, a display message is rendered informing users of its unavailability when toggled off.

Build & Run

Prerequisites

  • Node v16
  • Svelte v3.49
  • Vite v3.1

Running the app

  1. Clone this repository

  2. Open a terminal in the root of the cloned repo and install the required npm packages:

npm install
  1. Start the app by running:
npm run dev

Learn more

Useful links to technical resources.

ConfigCat also supports many other frameworks and languages. Check out the full list of supported SDKs here.

You can also explore other code samples for various languages, frameworks, and topics here in the ConfigCat labs on GitHub.

Keep up with ConfigCat on Twitter, Facebook, LinkedIn, and GitHub.

Author

David Herbert

Contributions

Contributions are welcome!

Top categories

Loading Svelte Themes