We've built a simple web application that demonstrates how LaunchDarkly's SDK works. Below, you'll find the basic build procedure, but for more comprehensive instructions, you can visit your Quickstart page.
- Elixir
- npm
- LaunchDarkly account and server SDK key
- LaunchDarkly boolean feature flag called "alternate.page"
Clone this repo
git clone https://github.com/launchdarkly/hello-phoenix.git
Install dependencies
mix deps.get
Start your Phoenix server
LD_SDK_KEY="YOUR_SDK_KEY" mix phx.server
Now you can visit http://localhost:4000
from your browser.
To experience how different values of the alternate.page
flag would affect different users, visit
- http://localhost:4000/hello-launchdarkly/Joe
- http://localhost:4000/hello-launchdarkly/Robert
- http://localhost:4000/hello-launchdarkly/Mike
- etc.
- Official website: https://launchdarkly.com
- Erlang SDK documentation: https://docs.launchdarkly.com/sdk/server-side/erlang
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix