2023-11-14 10:15:07 +00:00
|
|
|
# SARBase
|
|
|
|
|
|
|
|
An attempt to create search and rescue database for logging SAR jobs and activities.
|
|
|
|
|
|
|
|
(c) 2019-2023 Vadim Likholetov
|
2023-11-14 20:33:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
|
|
|
|
|
2023-11-16 13:55:00 +00:00
|
|
|
# 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
|
2023-11-16 14:08:08 +00:00
|
|
|
|
|
|
|
# How to run the application with docker-compose
|
|
|
|
|
|
|
|
docker-compose up --build
|