Coder Social home page Coder Social logo

bassbusta / unleash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unleash/unleash

0.0 1.0 0.0 3.46 MB

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

License: Apache License 2.0

JavaScript 99.35% Shell 0.65%

unleash's Introduction

Unleash

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 official client implementations for Java, Node.js and Go.

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.

Unleash UI

Online demo version available on heroku.

Activation strategies

It'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.

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

We have offical SDK's for Java, Node.js and Go. 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.

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

Running Unleash

Requirements

You will need a PostgreSQL 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, which has the 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:password@localhost:5432/unleash -p 4242

Unleash started on http://localhost: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.

Run with docker

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

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.

I want to learn more

unleash's People

Contributors

ivarconr avatar sveisvei avatar jarib avatar gardleopard avatar simenb avatar andersos avatar stigkj avatar bjarneo avatar haakoneriksen avatar sverosak avatar clintabrown avatar leftiefriele avatar kjartis avatar scottwarren avatar tfheen avatar vsandvold avatar

Watchers

Bassbusta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.