Express app using @rolloutctrl/node-sdk — polls a feature flag and logs its state. Toggle the flag in the dashboard and watch changes appear.
yarn install
yarn workspace @rolloutctrl/node-sdk buildexport ROLLOUTCTRL_API_URL=http://localhost:3000/api
export ROLLOUTCTRL_SDK_KEY=your-sdk-key
export ROLLOUTCTRL_ENVIRONMENT=production
yarn devGET /:userId returns the current flag state as JSON.