aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCamil Staps2015-10-14 19:40:29 +0200
committerCamil Staps2015-10-14 19:40:29 +0200
commitadddd3ff8630bb8c5fc7355bcd0d09f226353f67 (patch)
treeae26c76eb0a9d7bdc496885bba2105ae00f19e5a /README.md
parentOnly insert from dump when non-empty (diff)
Using Orator migrations
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index ac2295f..6d44631 100644
--- a/README.md
+++ b/README.md
@@ -11,14 +11,15 @@ Install the necessary packages:
# pip3 install orator click
-First we need to setup an SQLite database:
+Edit the `config.py` to suit your needs. Then initialise the database:
- $ ./cli.py init pyble.db
+ $ orator migrations:run -c config.py # Create schema
+ $ ./cli.py init # Fill with standard data
You're going to need one or several translations. One possibility is to [get them from Bible Hub][biblehubdb] (take the "Text file (zipped, 5.5MB)"). Download and unzip the zipped text file, then run:
$ unzip bibles.zip
- $ ./cli.py load --type=biblehub bibles.txt pyble.db
+ $ ./cli.py load --type=biblehub bibles.txt
$ rm bibles.zip bibles.txt
## To do