UNPKG

5.35 kBMarkdownView Raw
1# Unleash
2
3[![Build Status](https://travis-ci.org/Unleash/unleash.svg?branch=master)](https://travis-ci.org/Unleash/unleash) [![Coverage Status](https://coveralls.io/repos/github/Unleash/unleash/badge.svg?branch=master)](https://coveralls.io/github/Unleash/unleash?branch=master) [![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?type=dev) [![Greenkeeper badge](https://badges.greenkeeper.io/Unleash/unleash.svg)](https://greenkeeper.io/) [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
4
5Unleash 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, Go, Ruby and Python.
6
7The 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
8
9> Feature toggles decouple **deployment** of code from **release** of new features
10
11This 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.
12
13<img src="https://github.com/Unleash/unleash/raw/master/docs/assets/dashboard.png" alt="Unleash UI" width="600" />
14
15[Online demo version available on heroku](https://unleash.herokuapp.com/#/features).
16
17## Activation strategies
18
19It'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.
20
21Common activation strategies includes:
22
23- Active For users with a specified userId
24- GradualRollout to X-percent of our users
25- Active for our beta users
26- Active only for application instances running on host x.
27
28Read more about activation strategies in [docs/activation-strategies.md](./docs/activation-strategies.md)
29
30## Client implementations
31
32We have offical SDK's for Java, Node.js, Go, Ruby and Python. 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.
33
34Official client SDKs:
35
36- [unleash/unleash-client-java](https://github.com/unleash/unleash-client-java)
37- [unleash/unleash-client-node](https://github.com/unleash/unleash-client-node)
38- [unleash/unleash-client-go](https://github.com/unleash/unleash-client-go)
39- [unleash/unleash-client-ruby](https://github.com/unleash/unleash-client-ruby)
40- [unleash/unleash-client-python](https://github.com/Unleash/unleash-client-python)
41
42Clients written by awesome enthusiasts: :fire:
43
44- [stiano/unleash-client-dotnet](https://github.com/stiano/unleash-client-dotnet) (.Net Core)
45- [onybo/unleash-client-core](https://github.com/onybo/unleash-client-core) (.Net Core)
46- [rarruda/unleash-client-python](https://github.com/rarruda/unleash-client-python) (Python 3)
47
48### The Client API
49
50The 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.
51
52```java
53if (unleash.isEnabled("AwesomeFeature")) {
54 //do some magic
55} else {
56 //do old boring stuff
57}
58```
59
60# Running Unleash
61
62## Requirements
63
64You will need a **PostgreSQL** 9.3+ database instance to be able to run Unleash.
65
66When 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.
67
68_Unleash_ will, at startup, check whether database migration is needed, and perform necessary migrations.
69
70## Using Unleash
71
72**The simplest way to get started:** (database-url can also be set as a environment variable: DATABASE_URL)
73
74```bash
75$ npm install unleash-server -g
76$ unleash -d postgres://unleash_user:password@localhost:5432/unleash -p 4242
77
78Unleash started on http://localhost:4242
79```
80
81You can also require Unleash as a lib (recommended) and expand it with more options. Read more about this feature in the [getting started guide](./docs/getting-started.md).
82
83### Securing Unleash
84
85Unleash also have extension points where you can integrate Unleash with your authentication provider (OAuth 2.0). Read more about [securing unleash](./docs/securing-unleash.md).
86
87## Run with docker
88
89We have made a separate project which runs unleash inside docker. Please see [unleash-docker](https://github.com/Unleash/unleash-docker)
90
91# Developer Guide
92
93If 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.
94
95# I want to learn more
96
97- [Blog: Unleash your features gradually!](http://bytes.schibsted.com/unleash-features-gradually/)
98- [Presentation: Unleash your features gradually!](http://ivarconr.github.io/feature-toggles-presentation/sch-dev-lunch-2017/#1)
99- http://martinfowler.com/bliki/FeatureToggle.html