2016-12-05 10:55:11 +01:00
# Unleash
2014-11-10 16:25:22 +01:00
2016-12-23 12:17:17 +01:00
__We will soon release Unleash v2.0.0.__
2016-06-18 11:36:50 +02:00
2016-11-07 09:54:07 +01:00
[![Build Status ](https://travis-ci.org/Unleash/unleash.svg?branch=master )](https://travis-ci.org/Unleash/unleash)
2016-11-10 21:15:16 +01:00
[![Coverage Status ](https://coveralls.io/repos/github/Unleash/unleash/badge.svg?branch=master )](https://coveralls.io/github/Unleash/unleash?branch=master)
2016-11-10 21:20:18 +01:00
[![Dependency Status ](https://david-dm.org/Unleash/unleash.svg )](https://david-dm.org/Unleash/unleash)
[![devDependency Status ](https://david-dm.org/Unleash/unleash/dev-status.svg )](https://david-dm.org/Unleash/unleash#info=devD)
2014-11-10 16:39:17 +01:00
2016-12-03 13:23:08 +01:00
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
2016-12-05 10:55:11 +01:00
fairly easy to develop client implementation for your favourite language.
2016-12-03 13:23:08 +01:00
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
2016-12-05 10:51:11 +01:00
> Feature toggles decouple **deployment** of code from **release** of new features
2016-12-03 13:23:08 +01:00
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-23 11:20:51 +01:00
< kbd >
2016-12-28 21:17:56 +01:00
![2016-12-28-211658_1115x752_scrot ](https://cloud.githubusercontent.com/assets/158948/21530723/069c3002-cd43-11e6-9837-7509dfbf0678.png )
2016-12-23 11:20:51 +01:00
< / kbd >
Online demo [version availble on heroku ](https://unleash-new-ui.herokuapp.com/#/features ).
2016-12-03 13:23:08 +01:00
## 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.
2016-12-03 13:25:50 +01:00
Read more about activation strategies in [docs/activation-strategies.md ](./docs/activation-strategies.md )
2016-12-03 13:23:08 +01:00
## Client implementations
2016-11-13 15:31:10 +01:00
- [unleash-client-java ](https://github.com/unleash/unleash-client-java )
- [unleash-client-node ](https://github.com/unleash/unleash-client-node )
2016-12-05 09:38:13 +01:00
- (your implementation here!)
2016-09-12 12:06:49 +02:00
2016-12-05 10:32:29 +01:00
Client implementations makes it is easy for developers to check whether a toggle is enabled or disabled.
2016-12-03 13:23:08 +01:00
```
if(unleash.isEnabled("AwesomeFeature")) {
//do some magic
} else {
//do old boring stuff
}
```
2016-12-02 17:47:13 +01:00
# 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
2016-12-05 10:55:11 +01:00
**The simplest way to get started:**
(database-url can also be set as a environment variable: DATABASE_URL)
2016-12-02 17:47:13 +01:00
```bash
$ npm install unleash-server -g
$ unleash -d postgres://unleash_user:passord@localhost:5432/unleash -p 4242
Unleash started on port:4242
```
2016-12-05 09:40:34 +01:00
You can also require Unleash as a lib and expand it with more options. Read more about this feature in the [getting started guide ](./docs/getting-started.md ).
2016-12-02 17:47:13 +01:00
2016-09-12 12:06:49 +02:00
## Project details
2016-11-13 15:31:10 +01:00
- [Project Roadmap ](https://github.com/unleash/unleash/wiki/Roadmap )
2014-11-10 16:39:17 +01:00
2016-11-30 23:56:33 +01:00
## Developer Guide
2016-12-05 10:32:29 +01:00
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 ](./docs/developer-guide.md ) to learn more on how you can contribute.
2014-10-31 16:35:35 +01:00
2016-11-30 23:56:33 +01:00
## Run with docker
2016-12-05 09:40:34 +01:00
We have made a separate project which runs unleash inside docker. Please see [unleash-docker ](https://github.com/Unleash/unleash-docker )