Skip to content

hossam-fares/crypto-tracker

Repository files navigation

Free binance crypto tracker

This application can track your binance wallet and sent notification if a specific asset market price goes up or down more than 10%

How can I run the app?

  1. Create Binance API key & secret key
- To read your wallet data, you need to create biniance key & secret 'read only is fine', you can follow [this toutorial](https://www.binance.com/en/support/faq/360002502072) to have it
- Save api key and secret to your `.env` file, same like `.env.example` shows
  1. Create google chat webhook url
- To sent a notification to you when prices changes, you need to create google chat webhook url using [this documentation](https://developers.google.com/chat/how-tos/webhooks)
- Save webhook url to your `.env` file, same like `.env.example` shows
  1. Create mongoDB
- We need to store the data in DB to, you can get free tier database from mongoDb atlas and get the connection URI, following [this link](https://www.mongodb.com/cloud/atlas/lp/try2)
- Save mongoDB connection URI to your `.env` file, same like `.env.example` shows
  1. Run the app

    • npm install
    • npm run main

How can I run the app as a cloud function and trigger it every X minutes?

Blank diagram

As the image above I have depend on only 3 components on GCP, you can fellow this articale to do it

How can I build a Ci/CD so when I change the code base it will deploy to the cloud function?

I'm usuing github flows to do that

  1. Fork this repo
  2. Update .github/workflows/google.yml#L36 with your function name
  3. Add secrets to your github repo like this
  4. you can find needed secrets in .github/workflows/google.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published