Skip to content

Bnei-Baruch/feed-api

Repository files navigation

Feed API

This service mainly provides content feed for mobile archive application (latest lessons and other content units). This service reads MDB and have alocal synced version, it also reads Chronicles and keeps a window of chronicles always updating it. The service also provides recommendations and servers views (content popularity).

Install

dep ensure

Migration tool

curl -L https://github.com/golang-migrate/migrate/releases/download/v4.12.2/migrate.linux-amd64.tar.gz | tar xvz

For MDB

cd databases/mdb
curl -L https://github.com/elwinar/rambler/releases/download/v5.4.0/rambler-linux-amd64 --output ./rambler

Make sure migrations/ramber.json is correct. If needed copy rambler.sample.json to ramber.sample and update.

./rambler -c migrations/rambler.json apply -a