Skip to content

switcherapi/switcherapi-tutorials

Repository files navigation


Switcher Tuorials
A collection of tutorials and code snippets to help you understand how to use Switcher SDKs.

switcher-playground-java

This project shows how to use the Switcher Java SDK to integrate feature flags into your Java application.

Find how to configure the SDK using the 2 ways available:

  • Using switcherapi.properties file
  • Using ContextBuilder

It also includes examples of how to use:

  • Snapshot Watcher for hot-reloading feature flags
  • Throttling to control the rate of requests to the Switcher API
  • Implement automated tests using SwitcherTest annotation

switcher-spring-playground

This project shows how to use the Switcher Java SDK with Spring Boot applications.
Find how to set up the SDK using Spring Boot environment configuration properties.

It also includes samples of how to use AB test using the @SwitcherTest annotation as well multiple feature flags in the same flow.

switcher-playground-js

This project shows how to use the Switcher JavaScript SDK to integrate feature flags into your JavaScript application.

Learn how to set up the JS SDK withing a CommonJS or ES6 module type project.

switcher-playground-bun

This project shows how to use the Switcher JavaScript SDK with the Bun.

It requires to disable regexSafe flag when setting up the SDK.