Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

mattt/rack-remote-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rack::RemoteConfiguration

Serve property list or JSON configuration files

This project is no longer maintained.

Although mobile and rich web clients consume resources from a server, there may be some application details that you'd like to coordinate outside of the resource structure of an API.

Remote Configuration is a great way to break out client-specific details into a single, orthogonal endpoint, such as feature flags, impromptu A/B tests, or a simple "message of the day"

Installation

Gemfile

gem 'rack-remote-configuration', require: 'rack/remote-configuration'
```

## Usage

### config.ru

```ruby
run Rack::RemoteConfiguration.new configuration: {
      'Greeting' => "Hello, World",
      'Price' => 4.20,
      'FeatureXIsLaunched' => true
    }

Parameters

  • configuration: a Hash, or File or a .json or .plist file path with the specified configuration.
  • path: the endpoint to serve the configuration, relative to the mount root of the application. (defaults to /configuration)

Deployment

Rack::RemoteConfiguration can be deployed to Heroku with the following commands:

$ heroku create
$ git push heroku master

Contact

Mattt

License

Rack::RemoteConfiguration is available under the MIT license. See the LICENSE file for more info.

About

Serve property list or JSON configuration files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages