Database for tracking search and rescue activities
Go to file
2023-11-19 23:08:19 +02:00
.idea Added display of records without login 2023-11-19 23:08:19 +02:00
init-db First step on adding permissions 2023-11-18 21:34:23 +02:00
templates Added display of records without login 2023-11-19 23:08:19 +02:00
translations Initial internationalisation implementation 2023-11-16 10:59:39 +02:00
admin.py Added display of records without login 2023-11-19 23:08:19 +02:00
app.py Added display of records without login 2023-11-19 23:08:19 +02:00
babel.cfg Initial internationalisation implementation 2023-11-16 10:59:39 +02:00
dashboard.py pre-bootstrap 2 2023-11-01 20:46:27 +02:00
docker-compose.yml Initial dockerization 2023-11-16 21:55:05 +02:00
Dockerfile Initial dockerization 2023-11-16 16:07:35 +02:00
gpx_tracks.py Added GPX filtering library 2023-11-15 17:22:31 +02:00
login.py pre-bootstrap 2 2023-11-01 20:46:27 +02:00
messages.pot Initial dockerization 2023-11-16 16:07:35 +02:00
models.py Added display of records without login 2023-11-19 23:08:19 +02:00
README.md First step on adding permissions 2023-11-18 21:34:23 +02:00
requirements.txt First step on adding permissions 2023-11-18 21:34:23 +02:00
sar_calls.py Added display of records without login 2023-11-19 23:08:19 +02:00

SARBase

An attempt to create search and rescue database for logging SAR jobs and activities.

(c) 2019-2023 Vadim Likholetov

How to prepare MySQL database

mysql> CREATE DATABASE sarbaseapp;
mysql> CREATE USER 'sarbaseuser'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON sarbaseapp.* TO 'sarbaseuser'@'localhost';
mysql> SET @@GLOBAL.sql_mode := REPLACE(@@GLOBAL.sql_mode, 'NO_ZERO_DATE', '');
mysql> FLUSH PRIVILEGES;
mysql> EXIT;

How to recompile the new translations

pybabel extract -F babel.cfg -o messages.pot .
pybabel update -i messages.pot -d translations
# Update the .po files with new translations
...
pybabel compile -d translations

How to run the application with docker-compose

docker-compose up --build

Database migration with docker environment

    docker-compose exec web flask db migrate
    docker-compose exec web flask db upgrade