Floodgate Docs

Getting started

Table of Contents

Welcome to Floodgate! This getting started guide will help you get setup quickly with Floodgate and integrating feature flags into your development workflow. By integrating Floodgate feature flags you’ll gain greater control over your software with minimal impact. Best of all you can be up and running in just a few minutes by following along with our Quick Start Tutorial.

Quick Start Tutorial

  1. Login to your Floodgate account. If you don’t already have a Floodgate account, sign up for a free account now.

  2. Once you have logged in you will be taken to the Quick Start Tutorial. When you sign up your first application, called My App, is created for you along with two environments, Production and Test.

If you are not automatically taken to the Quick Start Tutorial upon login, you can access it from the main navigation menu under Quick Start.

  1. Create your first feature flag as shown below.

Create first feature flag

  1. Once your feature flag has been created successfully you will see a green tick mark and you will be able to proceed to the next step.

Success

  1. We next want to add the Floodgate SDK into our application. Floodgate provides several SDKs for integration into your projects. Select the language you are using and the installation instructions will be shown. Take note that the code shown in the instructions is configured for the environment you selected along with the feature flag that you created.

Integrate with .Net

Below is an example of adding Floodgate into a .Net application.

Install-Package FloodGateSDK
using FloodGate.SDK;
var floodgateClient = new FloodGateClient("YOUR-ENVIRONMENT-SDK-KEY");
1var myFeatureFlag = floodgateClient.GetValue("my-first-feature-flag", false);
2
3if (myFeatureFlag)
4{
5 // Do something new and amazing here
6}
7else
8{
9 // Do whatever it is I'm usually doing here
10}
11
12floodgateClient.Dispose();

We recommend you create the Floodgate Client as a Singleton.

In the event your application loses connection to the Floodgate servers, your flags will still evaluate. When the Floodgate SDK initialises it creates a cache of your flag configuration data and uses that cache when evaluating flags. The SDK will periodically update the cache based on your preferences.