Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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).