Skip to content
Snippets Groups Projects
Commit 977ace9d authored by erichard's avatar erichard
Browse files

add instruction to create DB and start project with testing DB.

parent 6a1f2818
No related branches found
No related tags found
1 merge request!61Packager labelstower
This project delivers some python code for management of elements with system label within a Flask application.
For testing purpose, a Flask demonstration web site is provided,
to create testing database. Execute the following shell commands from project's root.
```
mkdir instance
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 -c 'from models import db;db.create_all()'
mv test.db voiture.db ou codingpool.db
sqlite3 voiture.db '.read data_voiture.sql'
mv voiture.db instance/
```
to be excuted with the help of Docker. You can move to the `docker` subdirectory and read the local `READ.md` for a detailed description of the provided utility scripts. For the impatient users, the recipe to start the demo wen site is :
```
cd docker
./build_dev.sh
./run_dev.sh
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment