Database for tracking search and rescue activities
Go to file
2023-11-26 21:06:43 +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
nginx Added SSL certificates management for both development and production, gunicorn and nginx. 2023-11-26 20:05:41 +02:00
static Added icons for GPX display 2023-11-26 21:06:43 +02:00
templates Added icons for GPX display 2023-11-26 21:06:43 +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 MVP version 0 2023-11-23 11:08:14 +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 Added SSL certificates management for both development and production, gunicorn and nginx. 2023-11-26 20:05:41 +02:00
Dockerfile-app Added SSL certificates management for both development and production, gunicorn and nginx. 2023-11-26 20:05:41 +02:00
Dockerfile-nginx Added SSL certificates management for both development and production, gunicorn and nginx. 2023-11-26 20:05:41 +02:00
generate_certs.sh Added SSL certificates management for both development and production, gunicorn and nginx. 2023-11-26 20:05:41 +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 Some sort of sorting and filtering in the SAR calls list 2023-11-24 21:50:56 +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