Skip to content

configcat-labs/feature-flags-in-flask-python-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feature-flags-in-flask-python-sample

A companion repo for "How to use Feature Flags with flask (python web framework)"

About this sample app

This app is a fictional movie app called AcmeTV Shows built with the Nuxt.js framework

Here is what it looks like:

image

How it works

The app has three (3) pages:

  1. Home Page
  2. Subscription Page
  3. Not Available Page

The companion article discussed the use of ConfigCat's feature flag services for feature flagging. This allowed me to render the Subscription page if the Feature Flag is switched on and render the Not Available page if its off.

How to run the App

  1. Clone this repository

  2. Open a terminal in the root of this repo

  3. Create and activate a python virtual environment:

virtualenv venv
source venv/bin/activate
  1. Install the required python packages by running:
pip install -r requirements.txt
  1. Set the Flask environment to development:
export FLASK_ENV=development
  1. Start the Flask app by running:
flask run

Reference

ConfigCat also 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 here in the ConfigCat labs on GitHub.

Keep up with ConfigCat on Twitter, Facebook, LinkedIn, and GitHub.

Author

Your Name

Contributions

Contributions are welcome!

About

A companion repo for "How to use Feature Flags with flask (python web framework)"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published