This repository contains a PDF extractor app for demonstrating how ConfigCat and OpenFeature can be used together. In the article, the fictional company, PD-EF Corp, uses feature flags to test newer AI models by releasing them for employees only.
- Node v18+
- Basic understanding of Node.js and Express
- Clone the repository:
- Click the green "Code" button on the repository's page and copy the URL in the text field.
- Paste and run the following in your terminal:
git clone https://github.com/configcat-labs/configcat-openfeature-sample.git
.
- Install the dependencies for the backend and frontend:
cd configcat-openfeature-sample/backend
npm install
cd configcat-openfeature-sample/frontend
npm install
-
Open
/backend/index.js
and enter your ConfigCat SDK key in the/models
route callback function. -
Run the backend:
cd backend
npm start
- Run the frontend:
cd frontend
npm run dev
- Sign up with an email ending in
@pf-efcorp.com
, then sign in.
- Sign up with an email that doesn't end in
@pd-efcorp.com
, then sign in.
- ConfigCat OpenFeature Provider for Node.js - Read the provider's documentation
- ConfigCat OpenFeature Providers - Check out the available OpenFeature providers.
- OpenFeature Server SDK - Learn more about OpenFeature's Server SDK (Node.js)
- OpenFeature - Learn more about OpenFeature
ConfigCat supports many other frameworks and languages. Check out the full list of supported SDKs here.
You can also explore other code samples for various languages, frameworks, and topics in ConfigCat labs on GitHub.
Keep up with ConfigCat on X, Facebook, LinkedIn, and GitHub.
Contributions are welcome!