bharwani / ld_svelte

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ld_svelte

A simple example of switching the page's background color based on a flag's value from LaunchDarkly. The example uses LaunchDarkly's svelte SDK

To Run

  • Edit src/App.svelte such that:
    • Add Client SDK key
    • Change flag key to suit your environment
      • NOTE: The flag should be type:string as the background color is passed as value
  • Follow svelte setup instructions to complete setup

Vite.JS for frontend tooling -- frankly, overkill for this effort

About


Languages

Language:Svelte 64.4%Language:JavaScript 25.6%Language:HTML 9.9%