Python - Image Search App
A demo using Schematic to implement packaging in an application. The Github repo is here and can be cloned to run locally.
This app is an image search engine using the Flickr API. It:
- Implements metered packaging model
- Checks for feature access based on the current subscription
- Reports usage of a feature
- Manages the subscription lifecycle using Schematic
The Billy app also uses Schematic to manage all entitlements, and you’ll seed your very own Schematic account to power your version of the Billy app.
Getting started with the Billy app
- Clone the repo:
- Create and activate a virtualenv in the directory
- Install all requirements:
npm is used as a task runner and to support TailwindCSS.
- Initialize the .env file by copying the example file:
- Populate your .env file
- Generate Flickr API keys here (to fill in FLICKR_API_KEY, FLICKR_SECRET_KEY): https://www.flickr.com/services/apps/create/ (you will need to create a dummy app - call it anything)
- Generate Schematic API keys in your account here (to fill in SCHEMATIC_API_KEY): https://docs.schematichq.com/quickstart#setting-up-dev-and-prod-environments
Getting started with the Schematic app
- Log into your Schematic account
- Run the following to seed your Schematic environment with flags, features, and plans for Billy (make sure your .env file has a valid Schematic API key first):
- Run the Billy app locally
Running locally
Run the following command:
Open the app locally at http://127.0.0.1:5000/. Create an account on the sign up page and log in.
Next steps
Once you log in, Schematic will register the company and user and assign access appropriately. You can also now use Schematic to manage plans, limits, and entitlements for anyone you register with Billy.
To see how Schematic is integrated into the Billy app to manage features and plans, go here.
To read more about how to use the Schematic app, go here.