2020-06-20 12:52:11 +02:00
|
|
|
# cheese-shop
|
|
|
|
Well, it's certainly uncontaminated by cheese.
|
2020-07-04 18:05:06 +02:00
|
|
|
|
|
|
|
## Setup
|
|
|
|
In MySQL, first load the database definition:
|
|
|
|
|
|
|
|
SOURCE sql/def.sql;
|
|
|
|
|
|
|
|
Then, create an user named `wensleydale` with appropriate permissions
|
|
|
|
to be used by `mysql.connector`:
|
|
|
|
|
|
|
|
SOURCE sql/ctl.sql;
|
|
|
|
|
|
|
|
To insert the metadata to the `cheese_shop` database, open a shell and run
|
|
|
|
|
|
|
|
pip install -r tools/requirements.txt
|
|
|
|
python tools/make-cheeses.py
|
|
|
|
|
2020-07-04 20:21:31 +02:00
|
|
|
The script runs on Python 3.6 and above.
|