0.0.1 • Published 12 years ago

feature-flipper-js v0.0.1

Weekly downloads
1
License
-
Repository
github
Last release
12 years ago

!https://travis-ci.org/bigodines/feature-flipper-js.png?branch=master!:https://travis-ci.org/bigodines/feature-flipper-js

h1. Repo stability: It works but it has been abandoned.

Use at your own risk. I'm happy to merge/review PRs but I don't intend on developing new features or keep it up to date with the latest features of node.

h2. FeatureFlipper.js

The goal of this project is to provide an easy yet flexible way to test features only with a subset of your users.

Feature Flippers are becoming more and more popular as companies started implementing Lean Startup and Continuous Deployment techniques in their development process. The reason is very simple: It enables you to control which features will be displayed for your users, allowing tests in production without affecting the whole user set.

We all know that production environments always have some gotchas that we can't fake in tests or can't reproduce in staging environments. How cool would be if we could push something disabled to production and enable it just for us, so we can test before enabling to everyone? Feature Flipper is here to the rescue :-)

h3. Proposed workflow

Here is how I use Feature Flipper:

Develop a feature;

Add it to feature flipper;

Enabled it to yourself (it should be ok to use production env as all features are disabled by default);

Test, test, test;

Enable to all users;

After feature is stable, remove the feature that would be rendered instead of the new one.

Clean up your code and get back to 1)

h3. Library usage:

This library is in it very early stage. So far it supports only basic operation but it is under heavily development and I plan to add many more features in the next couple weeks.

Create a feature flipper object passing the storage engine you plan to use and create some features:

Then you'll have a way to test wether to render this feature or something else:

Delete a feature:

h3. Dependencies

This library currently depends on @mocha@, @should@ and @redis@ modules for nodejs. You can install all of them with @npm@

The sample_app/ requires @express@ as well.

h3. Roadmap:

Please check 'issues' for more details on what's in the roadmap and bugfixes