Skip to content
Snippets Groups Projects

Labels Tower

Some python code for management of labels within a Flask application. For demo pupose, one must define either LT_CFG=Voiture or LT_CFG=CodingPool.

Directories

Most directories have their own README.md.

  • labelstower : main code, i.e. a blueprint for Flask.
  • docker : anything for building docker images with all the needed externals.
  • dist : where we build and store wheel distributions of the main labelstower code.
  • test/instance : where we initialize a test sqlite database.
  • test/demo : web demo application.
  • test/scripts : various command-line test.

Demonstration from scratch, with Docker

With the help of Docker :

  1. Build the dev Docker image : docker/build_externals.sh
  2. Build the labelstower distribution : docker/run_externals.sh dist/build.sh
  3. Build the demo Docker image : docker/build_latest.sh (it includes the above distribution)
  4. Initialize a database : docker/run_latest.sh instance/init_db.sh
  5. Starts the flask server : docker/run_latest.sh