Skip to content

configcat-labs/configcat-openfeature-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDF Extractor

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.

standard-ai-models

Build & Run

Prerequisites

  • Node v18+
  • Basic understanding of Node.js and Express
  1. 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.
  2. Install the dependencies for the backend and frontend:
cd configcat-openfeature-sample/backend
npm install

cd configcat-openfeature-sample/frontend
npm install
  1. Open /backend/index.js and enter your ConfigCat SDK key in the /models route callback function.

  2. Run the backend:

cd backend
npm start
  1. Run the frontend:
cd frontend
npm run dev
  1. Sign up with an email ending in @pf-efcorp.com, then sign in.

pro-models

  1. Sign up with an email that doesn't end in @pd-efcorp.com, then sign in.

standard-models

Learn more

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.

Author

Zayyad Muhammad Sani

Contributions

Contributions are welcome!

About

A sample app demonstrating how to use ConfigCat with OpenFeature

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published