The distribution packs core components and use mongo as backend.
These jobs are preconfigured:
Parses the given url
and store all posts to DB
Configuration:
url
- URL of the feed to indexfeed
- Code of the feedgroup
- Code of the feed group (Optional)mongoUrl
- Mongo URLdb
- DB Namecollection
- Collection name
Read feeds configuration file and schedule for each feed the process-feed
job.
Configuration:
configUrl
- URL of configuration. e.g. file:///app/config/feeds-config.yamlmongoUrl
- Mongo URLdb
- DB Namecollection
- Collection name
Build the project or download the latest version as one jar file can be downloaded from github packages.
- Start mongo
docker run -it --rm -p 27017:27017 mongo:3.6
- Process individual feed (process-feed.xml job)
java -jar target/feeds2mongo.jar process-feed.xml \
url=https://quarkus.io/feed.xml \
feed=quarkus \
mongoUrl=mongodb://localhost:27017 \
db=feeds2mongo \
collection=post
- Process multiple feeds based on configuration (process-all-feeds.xml job)
java -jar target/feeds2mongo.jar process-all-feeds.xml \
configUrl=file://$HOME/git/feeds2mongo/config/feeds-config.yaml \
mongoUrl=mongodb://localhost:27017 \
db=feeds2mongo \
collection=post
TODO
TODO
The configuration stored in /config/feeds-config.yaml
can be tested as part of junit test which stores data into in-memory mongoDB.
Simply run
mvn clean test -Pconfig-test-included