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 :
- Build the dev Docker image :
docker/build_externals.sh
- Build the labelstower distribution :
docker/run_externals.sh dist/build.sh
- Build the demo Docker image :
docker/build_latest.sh
(it includes the above distribution) - Initialize a database :
docker/run_latest.sh instance/init_db.sh
- Starts the flask server :
docker/run_latest.sh