952 B
952 B
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