Simple scala play frontend demonstrating feature switching
sbt -Dfeatures.app=true run
or
sbt stage
cd target/universal/stage/bin
./feature-management -Dfeatures.app=true
GET /sample-view
Render html page containing dummy link to register/login and a set of contact details
POST /set-feature/:name/state/:boolean
Turns a feature on or off. Available features include
- Login: Toggles html in the sample view
- contact-details: Toggles html in the sample view
- app: Toggles whether the service is available or not