news-bot

所属分类:Docker
开发工具:HTML
文件大小:0KB
下载次数:0
上传日期:2020-02-10 13:32:32
上 传 者sh-1993
说明:  Clojure+基于AWS的新闻机器人
(Clojure+AWS based News Bot)

文件列表:
.idea/ (0, 2020-02-10)
.idea/ClojureProjectResolveSettings.xml (176, 2020-02-10)
.idea/codeStyles/ (0, 2020-02-10)
.idea/codeStyles/Project.xml (267, 2020-02-10)
.idea/codeStyles/codeStyleConfig.xml (149, 2020-02-10)
.idea/compiler.xml (555, 2020-02-10)
.idea/misc.xml (476, 2020-02-10)
.idea/modules.xml (256, 2020-02-10)
.idea/vcs.xml (180, 2020-02-10)
CHANGELOG.md (770, 2020-02-10)
LICENSE (14199, 2020-02-10)
doc/ (0, 2020-02-10)
doc/intro.md (106, 2020-02-10)
docker-compose.yml (205, 2020-02-10)
logo/ (0, 2020-02-10)
logo/cpp_news_bot.jpg (30465, 2020-02-10)
news-bot.iml (13269, 2020-02-10)
project.clj (1153, 2020-02-10)
resources/ (0, 2020-02-10)
resources/config.edn (125, 2020-02-10)
src/ (0, 2020-02-10)
src/news_bot/ (0, 2020-02-10)
src/news_bot/config.clj (222, 2020-02-10)
src/news_bot/core.clj (243, 2020-02-10)
src/news_bot/lambda.clj (769, 2020-02-10)
src/news_bot/persistence.clj (5672, 2020-02-10)
src/news_bot/publisher.clj (3093, 2020-02-10)
src/news_bot/sources/ (0, 2020-02-10)
src/news_bot/sources/boost.clj (2978, 2020-02-10)
src/news_bot/sources/clang_features.clj (3183, 2020-02-10)
src/news_bot/sources/cmake.clj (1228, 2020-02-10)
src/news_bot/sources/common_dp.clj (1283, 2020-02-10)
src/news_bot/sources/interface.clj (429, 2020-02-10)
src/news_bot/sources/overload.clj (1436, 2020-02-10)
src/news_bot/sources/so.clj (4120, 2020-02-10)
src/news_bot/twitter.clj (2365, 2020-02-10)
terraform/ (0, 2020-02-10)
terraform/main.tf (1089, 2020-02-10)
... ...

This is C++ News Bot which is able to collect news from multiple data sources like: - Best of day/week/month/year StackOverflow question; - [ACCU Overload](https://accu.org/index.php/journals/c78/) journals update; - [BOOST](https://www.boost.org/) library updates; - CMake releases. News Bot will support some extra data sources soon: - OpenSSL updates; - libCURL updates; - Starred items from [awesome-cpp](https://github.com/fffaraz/awesome-cpp). # Compiling The News Bot is AWS Lambda hosted application and JVM 8 is **mandatory** for AWS execution. News Bot **must** be compiled with JVM 8, otherwise AWS Lambda will fail on startup inside `nio`. Compile `uberjar`: ```bash lein uberjar ``` # Upload Upload new version: ```bash aws s3 cp .\target\uberjar\news-bot.jar s3://cpp-news-bot-singapore ``` Refresh AWS Lambda: ```bash aws lambda update-function-code --function-name cpp-news-bot-ap-southeast-1 --region ap-southeast-1 --s3-bucket cpp-news-bot-singapore --s3-key news-bot.jar ``` Run AWS Lambda function once: ```bash aws lambda invoke --invocation-type RequestResponse --function-name cpp-news-bot-ap-southeast-1 --region ap-southeast-1 --log-type Tail --payload '{}' outfile.txt ``` _NOTE:_ Terraform support is under construction. # Testing Some pre-configuration is required for local tests execution: * _twitter.edn file should contain Twitter credentials as EDN record: ```clojure {:AppKey "_APP_KEY_", :AppSecret "_APP_SECRET_", :UserToken "_USER_TOKEN_", :UserTokenSecret "_USER_TOKEN_SECRET_"} ``` * [LocalStack](https://localstack.cloud/) should be available as Docker image `localstack/localstack`. ```bash docker-compose up ``` * Use `Cloverage` tool for coverage report generation: ```bash lein cloverage ```

近期下载者

相关文件


收藏者