Telegram channel that monitors year progress in percents.
This project is hosted on Deta Micros. It uses Deta Base to save the progress state and Deta Cron to execute the script every 2 minutes.
deta new --node year-progress
deta visor enable
- Clone repo files into just-created folder:
git clone https://github.com/mikhailsdv/year-progress.git
- Go to the root folder and install dependencies:
npm i
- In the root folder, rename
.env.example
to.env
. Open it with your code editor and fill the missing variables. All the variables are well-commented. Then update your Micro's environment variables:
deta update -e .env
- Set a cron job to automatically execute the script every 2 minutes:
deta cron set "0/2 * * * ? *"
That's it. If nothing works, try running your code manually:
node src/test.js
... or take a look at your Micro's visor.