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
2016-12-03 13:53:52 +01:00
bin remove console... 2016-12-03 13:53:52 +01:00
docs Docs wip 2016-12-02 17:58:27 +01:00
lib replace commander with yargs 2016-12-03 13:45:34 +01:00
migrations remove all lerna stuff 2016-11-10 15:52:49 +01:00
scripts remove all lerna stuff 2016-11-10 15:52:49 +01:00
test replace commander with yargs 2016-12-03 13:45:34 +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 remove all lerna stuff 2016-11-10 15:52:49 +01:00
.gitignore use ava as testrunner 2016-11-13 15:59:35 +01:00
.travis.yml send coverage after success 2016-11-13 15:59:35 +01:00
LICENSE Update LICENSE 2014-09-29 16:46:35 +02:00
migrator.js replace commander with yargs 2016-12-03 13:45:34 +01:00
package.json replace commander with yargs 2016-12-03 13:45:34 +01:00
Procfile Update Procfile 2016-11-13 11:18:29 +01:00
README.md Update README.md 2016-12-03 13:25:50 +01:00
server.js cleanup bin 2016-12-02 16:34:05 +01:00

unleash

Warning: We will soon release the first official version of Unleash (1.0.0). If you want to test the previous package see previous tag

Build Status Coverage Status Dependency Status devDependency Status

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 client implementations for Java and Node, and it is easy fairly easy to develop client implementaiton for your favourite language.

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

Decoupling deployment of code and 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.

Activation strategies

It's fine to have a system for turning stuff on and off. But some times we want more granular controll, we want to decide who to the toggle should be enabled for. This is where activation strategies comes in to the picture. Activation strategies takes 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

Client implentations makes it is easy for developers to check whether a toggle is enabled or disabled.

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

Running Unleash

Requirements

You will need a PostreSQL 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, that have rights to migrate the database.

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

Start Unleash

1. The simplest way to get started:

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

Unleash started on port:4242

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

Project details

Developer Guide

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

Run with docker

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