bolshakov / stoplight

:traffic_light: Traffic control for code.
http://bolshakov.github.io/stoplight/
MIT License
384 stars 40 forks source link

Admin panel #3

Closed camdez closed 10 years ago

camdez commented 10 years ago
tfausak commented 10 years ago

Looks good to me so far. I think as soon as we released this gem (version 0.1.0 or whatever) we should pull the admin panel out into a separate gem that depends on this one.

For configuring the data store, could we set some options in Sinatra? Something like this: http://www.sinatrarb.com/extensions.html#setting-options-and-other-extension-setup.

set :stoplight_data_store, Stoplight::DataStore::Redis.new(...)
camdez commented 10 years ago

Yeah, as long as we're OK with requiring the user to actually modify the admin panel script. Which doesn't work so well in a gem, right?

tfausak commented 10 years ago

Ah, right you are. I was thinking we could provide the admin panel as an extension. Then the user could add it to their Sinatra app and configure it. (It would probably be the only thing in said Sinatra app, though.)

camdez commented 10 years ago
camdez commented 10 years ago
camdez commented 10 years ago
tfausak commented 10 years ago

https://github.com/orgsync/stoplight-admin