1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
Unleash is the open source feature toggle service.
Go to file
2018-04-19 10:03:12 +02:00
bin Lint commit (#239) 2017-06-28 14:10:32 +02:00
docs Spelling fixes 2018-02-10 11:14:36 +01:00
examples Fix rebase error 2018-01-17 15:39:53 +01:00
lib refactor: use body-parser bundled with express (#304) 2018-02-14 15:46:42 +01:00
migrations Update prettier and fix lint 2017-11-11 08:43:08 +01:00
scripts Use yarn in test script 2017-08-23 11:36:49 +02:00
test Bugfix: more informative name validation errors 2018-01-20 14:11:44 +01:00
.editorconfig eslint config 2016-06-18 21:42:35 +02:00
.eslintignore add eslintignore 2016-06-19 10:46:49 +02:00
.eslintrc Prettier/lint 2017-06-28 10:17:14 +02:00
.gitignore We should not use package-lock.json 2017-11-04 12:09:12 +01:00
.travis.yml use npm instead of yarn tp install greenkeeper-lockfile 2017-12-18 09:20:33 +01:00
app.json Add postgres addon to app.json 2018-01-15 09:12:27 +01:00
CHANGELOG.md fix(package): Prepare version 3.0.0 2018-02-10 09:43:21 +01:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2017-06-21 11:53:27 +02:00
LICENSE Update LICENSE 2014-09-29 16:46:35 +02:00
logger.js Implement support for logger provider. 2017-08-04 16:07:17 +02:00
migrator.js Lint commit (#239) 2017-06-28 14:10:32 +02:00
package.json fix(package): update deep-diff to version 1.0.0 2018-04-19 10:03:12 +02:00
Procfile Use yarn with travis/heroku 2017-11-02 09:56:44 +01:00
README.md fix(package): Prepare version 3.0.0 2018-02-10 09:43:21 +01:00
server.js cleanup bin 2016-12-02 16:34:05 +01:00
yarn.lock chore(package): update lockfile 2018-04-19 10:00:03 +02:00

Unleash

Build Status Coverage Status Dependency Status devDependency Status Greenkeeper badge Deploy

Unleash is a feature toggle system, that gives you a great overview over all feature toggles across all your applications and services. It comes with official client implementations for Java, Node.js and Go.

The main motivation for doing feature toggling is to decouple the process for deploying code to production and releasing new features. This helps reducing risk, and allow us to easily manage which features to enable

Feature toggles decouple deployment of code from release of new features

This repo contains the unleash-server, which contains the admin UI and a place to ask for the status of features. In order to make use of unleash you will also need a client implementation.

Unleash UI

Online demo version available on heroku.

Activation strategies

It's fine to have a system for turning stuff on and off. But some times we want more granular control, we want to decide who to the toggle should be enabled for. This is where activation strategies comes in to the picture. Activation strategies take arbitrary config and allows us to enable a toggle in various ways.

Common activation strategies includes:

  • Active For users with a specified userId
  • GradualRollout to X-percent of our users
  • Active for our beta users
  • Active only for application instances running on host x.

Read more about activation strategies in docs/activation-strategies.md

Client implementations

We have offical SDK's for Java, Node.js and Go. And we will be happy to add implementations in other langugages written by you! These libraries makes it very easy to use Unleash in you application.

Clients written by awesome enthusiasts:

The Client API

The client SDKs provides a simple abstraction making it easy to check feature toggles in your application. The code snippet below shows how you would use Unleash in Java.

if (unleash.isEnabled("AwesomeFeature")) {
  //do some magic
} else {
  //do old boring stuff
}

Running Unleash

Requirements

You will need a PostgreSQL 9.3+ database instance to be able to run Unleash.

When starting Unleash you must specify a database URI (can be set as environment variable DATABASE_URL) which includes a username and password, which has the rights to migrate the database.

Unleash will, at startup, check whether database migration is needed, and perform necessary migrations.

Using Unleash

The simplest way to get started: (database-url can also be set as a environment variable: DATABASE_URL)

$ npm install unleash-server -g
$ unleash -d postgres://unleash_user:password@localhost:5432/unleash -p 4242

Unleash started on http://localhost:4242

You can also require Unleash as a lib (recommended) and expand it with more options. Read more about this feature in the getting started guide.

Securing Unleash

Unleash also have extension points where you can integrate Unleash with your authentication provider (OAuth 2.0). Read more about securing unleash.

Run with docker

We have made a separate project which runs unleash inside docker. Please see unleash-docker

Developer Guide

If you want to contribute to this project you are encouraged to send issue request, or provide pull-requests. Please read the unleash developer guide to learn more on how you can contribute.

I want to learn more