Skip to content

Examples for connecting to Compose services in Python

License

Notifications You must be signed in to change notification settings

rajrsingh/python

Repository files navigation

The Grand Tour - Python

A set of example applications that will add word/definition pairs to a database running on Compose.

This repo contains the apps written in Python 3.6.0 and uses the Flask web framework.

Running the Example

To run from the command-line:

  • navigate to the example-<db> directory
  • export your Compose connection string as an environment variable
  • set the flask app variable: export FLASK_APP=<_db_>-example.py
  • and then: flask run

The application will be served on 127.0.0.1:5000 and can be opened in a browser.

About

Examples for connecting to Compose services in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published