Database for tracking search and rescue activities
Go to file
vadik likholetov a33c77d2d0 1) added dynamic SAR calls list reloading
2) added support for uploading images and files
3) refactored sar_details
2023-12-09 23:21:44 +02:00
.idea 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +02:00
init-db 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +02:00
nginx Added drawing and saving objects on the map 2023-11-30 21:47:54 +02:00
static Added drawing and saving objects on the map 2023-11-30 21:47:54 +02:00
templates 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +02:00
translations Initial internationalisation implementation 2023-11-16 10:59:39 +02:00
.gitignore 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +02:00
admin.py 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +02:00
app.py 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +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 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +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 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +02:00
qodana.yaml 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +02:00
README.md First step on adding permissions 2023-11-18 21:34:23 +02:00
requirements.txt 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +02:00
sar_call_details.py 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +02:00
sar_calls.py 1) added dynamic SAR calls list reloading 2023-12-09 23:21:44 +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