UNPKG

6.16 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://www.heroku.com/deploy/?template=https://github.com/Unleash/unleash)
4
5Unleash is a open source feature flag & 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, Python and .NET Core.
6
7## Unleash-enterprise [:link:](https://www.unleash-hosted.com/open-source)
8Unleash is also available in an enterprise edition, which builds on top of the open-source version, with additional features. Go to [unleash-hosted.com](https://www.unleash-hosted.com/open-source) to learn more about the enterprise offering.
9
10## What is a feature toggle?
11
12The 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
13
14> Feature toggles decouple **deployment** of code from **release** of new features
15
16This 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.
17
18<img src="https://github.com/Unleash/unleash/raw/master/docs/assets/dashboard_new.png" alt="Unleash UI" width="600" />
19
20[Online demo version available on heroku](https://unleash.herokuapp.com/#/features).
21
22## Activation strategies
23
24It'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.
25
26Common activation strategies includes:
27
28- Active For users with a specified userId
29- GradualRollout to X-percent of our users
30- Active for our beta users
31- Active only for application instances running on host x.
32
33Read more about activation strategies in [docs/activation-strategies.md](./docs/activation-strategies.md)
34
35## Variants
36
37Sometimes you need more control than just a boolean flag. Variants provides this and can be used in combination of feature toggles and allow you to return multiple variants from a feature toggle, if it is enabled.
38
39## Client implementations
40
41We have official SDK's for Java, Node.js, Go, Ruby and Python. And we will be happy to add implementations in other languages written by you! These libraries makes it very easy to use Unleash in you application.
42
43Official client SDK's:
44
45- [unleash/unleash-client-java](https://github.com/unleash/unleash-client-java)
46- [unleash/unleash-client-node](https://github.com/unleash/unleash-client-node)
47- [unleash/unleash-client-go](https://github.com/unleash/unleash-client-go)
48- [unleash/unleash-client-ruby](https://github.com/unleash/unleash-client-ruby)
49- [unleash/unleash-client-python](https://github.com/Unleash/unleash-client-python)
50- [unleash/unleash-client-dotnet](https://github.com/Unleash/unleash-client-dotnet)
51
52Clients written by awesome enthusiasts: :fire:
53
54- [afontaine/unleash_ex](https://gitlab.com/afontaine/unleash_ex) (Elixir)
55- [mikefrancis/laravel-unleash](https://github.com/mikefrancis/laravel-unleash) (Larvel - PHP)
56
57### The Client API
58
59The 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.
60
61```java
62if (unleash.isEnabled("AwesomeFeature")) {
63 //do some magic
64} else {
65 //do old boring stuff
66}
67```
68
69# Running Unleash Service
70
71## Run it yourself
72
73Unleash is open source and you are free to run your own instance. Please refer to the [getting-started-guide](https://unleash.github.io/docs/getting_started) to learn how to run the Unleash Service.
74
75We have made a separate project which runs Unleash inside docker. Please see [unleash-docker](https://github.com/Unleash/unleash-docker) for details
76
77## Unleash as a Service (SaaS)
78
79After numerous request we have created a separate company, Unleash-hosted, which offer Unleash as a Service. Unleash-hosted allows you to focus on you core business and have someone else taking care of hosting and maintaining Unleash.
80
81Go to [unleash-hosted.com](https://www.unleash-hosted.com/open-source) to learn more about this offering and start using Unleash today. This service also includes official support.
82
83# Developer Guide
84
85If 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.
86
87# I Need help
88
89- [Join Unleash on Slack](https://join.slack.com/t/unleash-community/shared_invite/enQtNjUxMjU2MDc0MTAxLTJjYmViYjkwYmE0ODVlNmY1YjcwZGRmZWU5MTU1YTQ1Nzg5ZWQ2YzBlY2U1MjlmZDg5ZDRmZTMzNmQ5YmEyOGE) if you want ask open questions about Unleash, feature toggling or discuss these topics in general.
90- [Create a issue request](https://github.com/Unleash/unleash/issues/new) if you have found a bug or have ideas on how to improve Unleash.
91
92## Other resources
93
94- [Unleash-hosted - Unleash as a Service](https://www.unleash-hosted.com)
95- [Medium blog](https://medium.com/unleash-hosted)
96- [Blog: Unleash your features gradually!](http://bytes.schibsted.com/unleash-features-gradually/)
97- [Presentation: Unleash your features gradually!](http://ivarconr.github.io/feature-toggles-presentation/sch-dev-lunch-2017/#1)
98- http://martinfowler.com/bliki/FeatureToggle.html