Creating a demo database

Warning : it works only for sqlite database. It will move your actual base with as <DB_PATH>.YYYYMMDD-HHMM

cd src/tools/demo

How it works ?

The script will first kill REST module. Then it will backup the actual sqlite database before creating a new one. Then, the call_rest.py script is called to insert data in database. Data is taken from demo_data.txt file (default).

Init data

Edit demo_data.txt (default) file or create an other file with REST based commands. Example for creating an area :

/base/area/add/Area1/Description

To use default file (demo_data.txt), launch :

./demo_database.sh

To use with a special file :

TODO !!! ;)