- api - js api to add whitewater objects to yandex map (see INTEGRATION_ru.md)
- backend - map backend provides river and whitewater information from database
- config - package installs common configuration file of project
- cron - utilites for periodical execution:
- backup - script for database backup
- catalog-sync - synchronize database with remote reports and catalogs
- db-clean - tool for cleaning old data from db
- log-notifications - creates notification when objects (rivers, spots, etc.) were changed
- meteo - tool for weather data fetch in configured points
- notifier - sends reports to email
- spot-sort - inactive
spot ordering tool. Calculates order index for each spot relying on the rivar track(s) - vodinfo-eye - tool for water level data fetching from gis.vodinfo.ru
- cron2 - gocron-based scheduler daemon with rest api (for web ui)
- data - utilities for OSM xml parsing
- db - database migrations package
- frontend - wwmap site and backoffice frontend
- lib - not a package - common go sources
- t-cache - app for caching of slow tiles
Run debuild -us -uc
in directory containing debian
folder
- Install postgres and postgis
- Create database user
wwmap
and dbwwmap
owned by created user. Enable postgis extension on dbwwmap
:
CREATE ROLE wwmap_group;
CREATE ROLE wwmap LOGIN
NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;
CREATE DATABASE wwmap WITH OWNER = wwmap_group ENCODING = 'UTF8';
GRANT wwmap_group TO wwmap;
\password wwmap
\c wwmap
CREATE EXTENSION postgis;
- Install
wwmap-config
and changeWWMAP_POSTGRES_PASSWORD
with real password ofwwmap
user in file/etc/wwmap/config.yaml
- Install migrate: https://github.com/golang-migrate/migrate/tree/master/cmd/migrate
- Install
wwmap-db
and runwwmap-db-upgrade up
- Install
wwmap-backend
and runservice wwmap-backend start
- Install
wwmap-t-cache
and runservice wwmap-t-cache start
- Install
nginx
and remove all from sites-enabled. - Install
wwmap-frontend
,wwmap-api
and runservice nginx restart
- In file
/etc/wwmap/config.yaml
set real yandex disk credentials in thebackup
section. Installpyyaml
python package:
LC_ALL='ru_RU.UTF-8' pip install pyyaml
- Install
wwmap-cron
See INTEGRATION_ru.md