diff --git a/.env b/.env index fbbfaa8..4743f61 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ -KJV_SERMON_DB="/home/tyler/kjv-api/sermon-analyzer/data/sermons.db" +KJV_SERMON_DB="./data/sermons.db" +# this does not do anything unless sermon_analyzer.py is running in tcp socket mode as a separate process KJV_SECRET_API_KEY="testing" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d39c5ca --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +logs/*.log +*__pycache__* diff --git a/app.py b/app.py index 99c2b8a..51d07ee 100644 --- a/app.py +++ b/app.py @@ -744,6 +744,10 @@ def make_view(response_list=[]): response = jsonify(response_list) +@app.get("/fe") +def frontend(): + return send_file('kjv_fe.html') + @app.get("/search") # user-facing keyword search. To be moved to backend, possibly replaced with semantic search. def search(): keywords = request.args.get("kw", None) diff --git a/data/notes b/data/notes new file mode 100644 index 0000000..579b1ed --- /dev/null +++ b/data/notes @@ -0,0 +1,3 @@ +https://www.sqlite.org/fts5.html +4.3.4. The Trigram Tokenizer + diff --git a/data/seq.db b/data/seq.db index 25e29e8..948f6b5 100644 Binary files a/data/seq.db and b/data/seq.db differ diff --git a/data/sermons.db b/data/sermons.db new file mode 100644 index 0000000..00b8644 Binary files /dev/null and b/data/sermons.db differ diff --git a/data/shortcodes.db b/data/shortcodes.db index 9401dec..9300b55 100644 Binary files a/data/shortcodes.db and b/data/shortcodes.db differ diff --git a/html/index.html b/html/index.html index 5cfe5a4..3daed8c 100644 --- a/html/index.html +++ b/html/index.html @@ -3,23 +3,83 @@
-KJV accessible via web calls
+