Skip to content

kritulrathod/SamsFeatureFlags

 
 

Repository files navigation

Sams Feature Flags

Build Coverage Status

As part of a series of blog posts about Feature Flags, we needed to create our own custom Feature flags system. Our main application will call our feature flags service, asking for the state of particular feature flags based on their environment – for example, if we were implementing a new menu and wanted to use the feature flag in dev, the dev website will ask if the dev version of the new menu feature flag is enabled. Current features include

  • A REST API service to retrieve the state of the feature flag
  • A simple website to toggle the feature flags
  • Automated unit, integration and functional tests
  • Tracking to record the total number of uses and last date/time the feature flag was used

Build and Test

Uses .NET 6, MSTest, and Selenium. A GitHub action runs the CI/CD process.

Currently the CI/CD process:

  1. builds the code
  2. runs the unit tests
  3. deploys the web service and website to a web app staging slot
  4. runs Selenium smoke tests on the staging slot to ensure the project is working as expected
  5. swaps the staging and production slots

Dependabot runs daily to check for dependency upgrades, and will automatically create a pull request, and approve/close it if all of the tests pass successfully

Contribute

Feel free to fork and/or add any relevant feature suggestions, bug reports, or features!

About

ASP.NET Core Feature Flag service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 51.8%
  • HTML 34.7%
  • PowerShell 6.5%
  • CSS 5.9%
  • Other 1.1%