Coder Social home page Coder Social logo

metaware / flipper Goto Github PK

View Code? Open in Web Editor NEW
21.0 5.0 2.0 9 KB

Feature Flipper, Feature Flags, Rollout Flags, Feature Toggles for Crystal

License: MIT License

Crystal 100.00%
flipper redis memcached feature-flags rollout filestore features feature-flippers feature-toggles crystal

flipper's Introduction

flipper

Build Status LICENSE GitHub tag

Feature flipping is the act of enabling or disabling features or parts of your application, ideally without re-deploying or changing anything in your code base.

Installation

Add this to your application's shard.yml:

dependencies:
  flipper:
    github: metaware/flipper

Usage

require "flipper"

You are free to use anyone of the supported adapters/stores from crystal-kiwi

Flipper.adapter = Kiwi::RedisStore.new(Redis.new)
Flipper.enable(:feature_name)

if Flipper.enabled?(:feature_name)
  puts "Feature launched, Let's roll!"
else
  puts "Feature not released yet."
end

Flipper.disable(:search)

if Flipper.disabled?(:search)
  puts "Search is not available yet!"
end

Note: I strongly recommend to not use Kiwi::MemoryStore for development or production environments. It's suitable only for your test environments.

Roadmap

  • Simple Logic Gate
  • Groups
  • Individual Users/Actors
  • Percentage of Actors

Contributing

  1. Fork it ( https://github.com/metaware/flipper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Credits

Contributors

flipper's People

Contributors

dkimot avatar jasdeepsingh avatar katafrakt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flipper's Issues

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.