Loads news from popular vk news groups into PostgreSQL DB.
- Install app:
git clone https://github.com/vnkrtv/go-vk-news-loader.git
- Set list of vk groups screen names in config/groups.json. Example of config/groups.json:
["meduzaproject", "ria", "kommersant_ru", "tj", "rbc"]
- App settings (vk token and PostgreSQL connection information) stored in 'config/cfg.env':
nano config/cfg.env
- Build docker image:
docker build -t news-service .
- Run app as docker container (running PostgreSQL required):
docker run --name news-service-app --env-file cfg.env news-service