Skip to content

launchdarkly/hello-phoenix

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LaunchDarkly Sample Phoenix Framework Application

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.

Prerequisites

  • Elixir
  • npm
  • LaunchDarkly account and server SDK key
  • LaunchDarkly boolean feature flag called "alternate.page"

Run

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

Learn more about LaunchDarkly

Learn more about Phoenix Framework