Skip to content

splitio/example-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Split Elixir SDK Example

This is an Elixir web application example that demonstrates how to use the Split Elixir SDK, which connects to a Splitd daemon instance to evaluate feature flags and track events.

Get started

Run the Splitd daemon

  1. Download the Splitd daemon for your specific OS and CPU Architecture. For example, to download it for MacOS with Apple Silicon and assuming you have wget CLI tool installed, you can run the following command:
# Download the binary
wget https://github.com/splitio/splitd/releases/download/v1.6.0/splitd-darwin-arm-1.6.0.bin

# Make it executable
chmod +x ./splitd-darwin-arm-1.6.0.bin

NOTE: check here for other download options.

  1. Update the ./split.yaml configuration file with your Split server-side SDK Key. To get your SDK Key, sign in to your Split account, navigate to the "Admin Settings" -> "API Keys" tab, and copy the SDK Key from the "SDK API Keys" section.

  2. Start the Splitd daemon by running the following command:

SPLITD_CONF_FILE=./splitd.yaml ./splitd-darwin-arm-1.6.0.bin

Run the Elixir application

Prerequisites: install Elixir.

  1. Install dependencies:
mix deps.get
  1. Start the Elixir Web application:
mix run --no-halt

Validate

  • Open your browser and navigate to http://localhost:8080/feature-flag-names to see the list of feature flags available in your Split environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages