Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 2.35 KB

README.md

File metadata and controls

62 lines (38 loc) · 2.35 KB

How to Conduct an A/B Test in Elixir

This repository contains the accompanying sample code for the blog article titled 'How to Conduct an A/B Test in Elixir' The application relies on a web-based framework for Elixir called Pheonix to serve the app through the browser. To conduct the A/B test experiment, I've integrated ConfigCat feature flags for switching between and deploying each version to the user sample set. Additionally, I've incorporated Amplitude's data analytics platform to track and compare the clicks from each version, to decide on the best one.

Getting started

Prerequisites

Build

  1. Clone this repository
  2. Create a .env file in the root of the repo with the following content. Then replace the placeholder values with your own:
AMPLITUDE_API_KEY="YOUR-AMPLITUDE-API-KEY-GOES-HERE"
CONFIGCAT_SDK_KEY="YOUR-CONFIGCAT-SDK-KEY-GOES-HERE"
  1. Install the dependencies:
mix setup

Run

  1. Start Phoenix endpoint with:
mix phx.server

Now you can visit localhost:4000 from your browser.

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 X, Facebook, LinkedIn, and GitHub.

Author

Chavez Harris

Contributions

Contributions are welcome!