Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radiokot/wfeed-updater
Updater service for the Warm feed app. Replaces the original backend written in PHP
https://github.com/radiokot/wfeed-updater
jackson koin kotlin mysql tumblr vk
Last synced: 1 day ago
JSON representation
Updater service for the Warm feed app. Replaces the original backend written in PHP
- Host: GitHub
- URL: https://github.com/radiokot/wfeed-updater
- Owner: Radiokot
- Created: 2021-11-27T18:52:41.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-10T15:32:02.000Z (about 3 years ago)
- Last Synced: 2024-11-21T16:47:59.601Z (2 months ago)
- Topics: jackson, koin, kotlin, mysql, tumblr, vk
- Language: Kotlin
- Homepage: https://radiokot.com.ua/p/feed
- Size: 160 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Warm Feed updater
Updates [Warm Feed](https://radiokot.com.ua/p/feed/) database from VK and Tumblr sources for known authors.## Update sites
### VK
Posts source is the user's newsfeed (the user is defined by `VK_ACCESS_TOKEN`). Also updates author photos and names.
[Get access token](https://oauth.vk.com/authorize?client_id=4712158&scope=offline,wall,friends,photos&redirect_uri=https://oauth.vk.com/blank.html&response_type=token)### Tumblr
Posts source is the user's dashboard (the user is defined by `TUMBLR_ACCESS_TOKEN`). Does not update author photos and names.## Build
```bash
./gradlew shadowJar
```## Run
```bash
TUMBLR_CONSUMER_KEY=*** \
TUMBLR_CONSUMER_SECRET=*** \
TUMBLR_ACCESS_TOKEN=*** \
TUMBLR_ACCESS_SECRET=*** \
VK_ACCESS_TOKEN=*** \
DB_HOST=localhost \
DB_PORT=3306 \
DB_NAME=feed \
DB_USER=*** \
DB_PASSWORD=*** \
java -Dlog4j.configuration=file:build/libs/logging.properties -jar build/libs/updater.jar
```## Test
```bash
docker-compose -f test-db-compose.yaml up -d
```