Go to file
2024-07-25 18:36:56 +02:00
static Fixed overlapping lines + Typo 2024-07-25 18:36:56 +02:00
templates Fixed translations + Resizing line overlap + Disabled No type + Reorganized settings + Other fixes 2024-07-25 09:29:10 +02:00
translations Fixed overlapping lines + Typo 2024-07-25 18:36:56 +02:00
.gitignore Updated index page + Added about and result pages 2023-12-05 15:26:57 +01:00
app.py Fixed translations + Resizing line overlap + Disabled No type + Reorganized settings + Other fixes 2024-07-25 09:29:10 +02:00
babel.cfg Updated visuals and expanded website. 2024-02-19 15:33:19 +01:00
docker-compose.yml Added --compare and --query 2024-02-20 10:59:58 +01:00
Dockerfile Updated visuals and expanded website. 2024-02-19 15:33:19 +01:00
gui.py Initial commit 2023-10-04 17:24:40 +02:00
LICENSE Added licence 2023-12-06 16:38:40 +01:00
messages.pot Fixed translations + Resizing line overlap + Disabled No type + Reorganized settings + Other fixes 2024-07-25 09:29:10 +02:00
README.md Updated README + some small fixes 2024-03-13 11:07:17 +01:00
requirements.txt Multiple visual adaptations. 2024-03-06 09:40:12 +01:00
setup.py Updated to new STARK version + some small updates 2024-07-04 13:39:46 +02:00

About

This is a repository where you may access the code for STARK-web.

Running

Install required libraries using (we presume you have preinstalled python 3.8+):

pip install -r requirements

Move to project directory and write:

flask run

To run project locally.

Deployment

Website is deployed on 'storitve' server.

After connecting there, clone latest version of this repository to custom location.

Move inside clone repository and build a docker image using the following command (adapt version by modifying cited 2024-01-01):

docker build -t stark-web:2024-01-01_1 .

Move to the location with docker-compose.yml (/opt/Docker/STARK-web/) and adapt docker-compose.yml file to be a container of the latest image (in previous example this would be image: stark-web:2024-01-01_1)

Run new docker container:

docker compose up -d

Translations

Translations are implemented using flask-babel library (this should already be installed if you followed instructions in Running section).

Install gettext

In order to use msgmerge command you have to install gettext.

# Ubuntu command
sudo apt install gettext

Update translations commands

# Move to project directory

# Create .pot file
pybabel extract -F babel.cfg -o messages.pot .
msgmerge translations/sl/LC_MESSAGES/messages.po messages.pot -o translations/sl/LC_MESSAGES/messages.po
msgmerge translations/en/LC_MESSAGES/messages.po messages.pot -o translations/en/LC_MESSAGES/messages.po

# !Check and delete fuzzy in .po files

# Compile changes
pybabel compile -d translations

Initiate a new language

If new language is introduced, you may use the following command:

pybabel init -i messages.pot -d translations -l es