From bda2af96ac2023836207995f12ef451341188913 Mon Sep 17 00:00:00 2001 From: Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> Date: Sun, 4 Dec 2022 17:43:30 +0100 Subject: Update README.md Add info on deployment --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e4375ab..4f4750b 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,18 @@

Introduction

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. +

On-line version

+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. +

Installation

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.

Running the application

-- cgit