aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2022-12-04 17:43:30 +0100
committerGitHub <noreply@github.com>2022-12-04 17:43:30 +0100
commitbda2af96ac2023836207995f12ef451341188913 (patch)
tree52fc90aa551300dc9953d9d6fe3f573f1cefde58
parent975cf17fa30591fe2d10db7b552d78178591b97a (diff)
downloadjustice-bda2af96ac2023836207995f12ef451341188913.tar.gz
Update README.md
Add info on deployment
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index e4375ab..4f4750b 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,18 @@
<h1>Introduction</h1>
My first larger project, an application using Pyhon, Flask and SQLite to download open commercial register data from the Czech Ministry of Justice (justice.cz) and convert them into an sqlite3 database. The applicaton also contains a front-end component to search in the database by various properties. The main goal of the application is to provide users with more advanced search options compared to the official search at the Ministry of Justice website.
+<h1>On-line version</h1>
+You can view a deployed application at http://svetercze.pythonanywhere.com/. Note that since it uses SQLite, some queries are VERY SLOW in the on-line version due to the hosting limitations. They should be, however, reaasonably fast if you run the application locally.
+
+Also note that the databse is currently not being updated on a daily basis, so the data might not be up-to-date.
+
<h1>Installation</h1>
Download a zip file containing the whole repository and store it into a folder on your PC. You should preferably use a virtual environment.
+You will need to create a `config_data.py` file in main folder with the following variables:
+* `secret_key` - Your secret key, for example `secret_key = "my-secret-password"`
+* `db_address` - The local address of the database. I recommend using the following, if you want to run the application locally `db_address = 'sqlite:///justice.db'`
+
See `requirements.txt` for required packages.
<h1>Running the application</h1>