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.
Crypto news is fetched from Crypto Panic. Further reading here.
- API Key required.
- required as environment variable.
- CRYPTO_NEWS_API_KEY
Before running, required API key as environment variable.
git clone https://github.com/stelselim/CryptoNews_Functions.git
cd functions
npm install
npm run serve
npm run deploy
👤 Selim Ustel
- GitHub: @stelselim
- LinkedIn: @selimustel