Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikhailsdv/year-progress
Telegram channel that monitors year progress in percents.
https://github.com/mikhailsdv/year-progress
deta deta-base deta-micros telegram telegram-bot year-progress
Last synced: 1 day ago
JSON representation
Telegram channel that monitors year progress in percents.
- Host: GitHub
- URL: https://github.com/mikhailsdv/year-progress
- Owner: mikhailsdv
- Created: 2020-12-05T07:30:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-24T07:23:41.000Z (about 2 years ago)
- Last Synced: 2024-07-30T18:05:09.717Z (3 months ago)
- Topics: deta, deta-base, deta-micros, telegram, telegram-bot, year-progress
- Language: JavaScript
- Homepage:
- Size: 48.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# year-progress
Telegram channel that monitors year progress in percents.
## [Deta](https://www.deta.sh/)
This project is hosted on [Deta Micros](https://docs.deta.sh/docs/micros/about). It uses [Deta Base](https://docs.deta.sh/docs/base/about) to save the progress state and [Deta Cron](https://docs.deta.sh/docs/micros/cron) to execute the script every 2 minutes.
## How to set up?
1. Read the [docs](https://docs.deta.sh/docs/home);
2. Install [Deta CLI](https://docs.deta.sh/docs/cli/install);
3. Create new Micro and enable visor:```
deta new --node year-progress
deta visor enable
```4. Clone repo files into just-created folder:
```
git clone https://github.com/mikhailsdv/year-progress.git
```5. Go to the root folder and install dependencies:
```
npm i
```6. 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
```7. 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.
## Links
- [Channel itself](https://t.me/YearProgressBar).
- [Developer's blog](https://t.me/FilteredInternet).