CryptoNews_Functions

所属分类:NoSQL
开发工具:TypeScript
文件大小:88KB
下载次数:0
上传日期:2022-07-10 08:53:38
上 传 者sh-1993
说明:  使用Node.js、TypeScript和Cloud函数构建。每1小时获取最新加密新闻。稍后保存NoSQL数据库...
(Built with Node.js, TypeScript & Cloud Functions. Gets latest crypto news every 1 hour. Saves NoSQL database for later usage.)

文件列表:
.DS_Store (10244, 2022-07-10)
.firebaserc (62, 2022-07-10)
LICENSE (1069, 2022-07-10)
firebase.json (87, 2022-07-10)
functions (0, 2022-07-10)
functions\.DS_Store (6148, 2022-07-10)
functions\.eslintrc.js (606, 2022-07-10)
functions\lib (0, 2022-07-10)
functions\lib\.DS_Store (6148, 2022-07-10)
functions\package-lock.json (289091, 2022-07-10)
functions\package.json (887, 2022-07-10)
functions\src (0, 2022-07-10)
functions\src\.DS_Store (6148, 2022-07-10)
functions\src\config (0, 2022-07-10)
functions\src\config\constant.ts (245, 2022-07-10)
functions\src\index.ts (1277, 2022-07-10)
functions\src\interfaces (0, 2022-07-10)
functions\src\interfaces\news_article.ts (554, 2022-07-10)
functions\src\interfaces\news_entity.ts (560, 2022-07-10)
functions\src\service (0, 2022-07-10)
functions\src\service\cryptoNews.services.ts (2139, 2022-07-10)
functions\tsconfig.dev.json (34, 2022-07-10)
functions\tsconfig.json (352, 2022-07-10)

## Crypto News Functions #### This project, for getting latest crypto news every 1 hour & saving the news for later usage. The project has 2 different cloud functions. - **scheduledCryptoNewsFunction**: Triggers the latest news function every 1 hour. It is a scheduled function (Cron Job). - **cryptoNewsHandler**: Gets latest crypto news, saves Firestore database for later usage. It is a HTTPs request.
## Provider Crypto news is fetched from Crypto Panic. Further reading [here](https://cryptopanic.com/developers/api/). - API Key required. - required as environment variable. - **CRYPTO_NEWS_API_KEY**
## How To Run Before running, required API key as environment variable. ``` git clone https://github.com/stelselim/CryptoNews_Functions.git cd functions npm install npm run serve ```
## How Deploy ``` npm run deploy ```
## Authors ‘¤ **Selim Ustel** - GitHub: [@stelselim](https://github.com/stelselim) - LinkedIn: [@selimustel](https://www.linkedin.com/in/selimustel/)

近期下载者

相关文件


收藏者