1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
Unleash is the open source feature toggle service.
Go to file
Ivar Conradi Østhus df530b31dc Update CHANGELOG.md
2020-02-20 08:30:46 +01:00
bin
docs Update migration-guide.md 2020-02-20 08:30:45 +01:00
lib Strategy name can be up to 100chars . Closes #195 2020-02-20 08:30:45 +01:00
migrations
scripts
test
.editorconfig
.eslintignore
.eslintrc
.gitignore
.travis.yml
CHANGELOG.md Update CHANGELOG.md 2020-02-20 08:30:46 +01:00
LICENSE
migrator.js
package.json 2.0.0-alpha.8 2020-02-20 08:30:46 +01:00
Procfile
README.md Update README.md 2020-02-20 08:30:45 +01:00
server.js

Unleash

We will soon release Unleash v2.0.0.

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 fairly easy to develop client implementation 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

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.

![2016-12-28-211658_1115x752_scrot](https://cloud.githubusercontent.com/assets/158948/21530723/069c3002-cd43-11e6-9837-7509dfbf0678.png)

Online demo version availble on heroku.

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 implementations 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

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:passord@localhost:5432/unleash -p 4242

Unleash started on port:4242

You can also require Unleash as a lib and expand 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 encouraged to send issue request, or provide pull-requests. Please read the unleash developer guide to learn more on how you can contribute.

Run with docker

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