Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 914 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 914 Bytes

Node.js quickstart

Follow the server setup to create new_checkout and an app that selects it. Replace the URL, environment, application ID, and API Key in quickstart.js, then run from the repository root:

npm ci --ignore-scripts
node sdk/node/build.js
node examples/node/quickstart.js

npm ci installs the official OpenFeature SDK and links the local Partly package. The example initializes Partly and registers its OpenFeature provider once at startup. Two requests reuse the OpenFeature client for local checks and handle errors explicitly. Keep both clients in application state and close them at shutdown. See the SDK guide.

The dashboard serves this same source, and the end-to-end suite runs it for enabled, disabled, unknown-flag, invalid-context, and rejected-key cases, including installed release packages.