michaelcretzman / ff-java-server-sample

Sample application using Java Server SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Before you Begin

Harness Feature Flags (FF) is a feature management solution that enables users to change the software’s functionality, without deploying new code. FF uses feature flags to hide code or behaviours without having to ship new versions of the software. A feature flag is like a powerful if statement.

For more information, see https://harness.io/products/feature-flags/

To read more, see https://ngdocs.harness.io/category/vjolt35atg-feature-flags

To sign up, https://app.harness.io/auth/#/signup/

This is a sample app demonstrating java sdk integration with CF

To use this application, follow the steps as below

  1. Create a project in Harness with Feature-flags module enabled
  2. Create an environment within your project
  3. Create a server-side sdk key in your environment COPY the value from the Admin Console to your clipboard since this value will only be displayed once
  4. Create a boolean feature-flag in the admin console
  5. Import the maven project in an IDE such as IntelliJ
  6. Replace the values for SDK Key and feature-flag identifier in the example program from step 3 and 4
  7. Run the program from the IDE

We are using the java sdk jar as dependency for this sample program

            <dependency>
                <groupId>io.harness</groupId>
                <artifactId>ff-java-server-sdk</artifactId>
                <version>1.0.0</version>
            </dependency>

About

Sample application using Java Server SDK

License:Apache License 2.0


Languages

Language:Java 100.0%