Example implementation with Express for featureflow-node-sdk
Get your Featureflow account at featureflow.io
##Usage
Copy .env.example to .env and set FEATUREFLOW_API_KEY to your Server Environment SDK Key from the API Keys link in featureflow.io - (the one starting 'srv-env-')
cp .env.example .envRun the node example app and browse to the standard http://localhost:3000/
yarn install
yarn startor run/debug via the "Launch Featureflow Example" configuration in your IDE (see .vscode/launch.json)
app.js shows us creating a basic middleware function to define the featureflow client at request time.
We subsequently register the Featureflow.ExpressClient middleware.
routes\index.js Shows us evaluating a feature at request time.
