https://github.com/hossara/vistayar
Vistayar
https://github.com/hossara/vistayar
docker firebase-firestore google-firebase nodejs nodemon telegram telegram-bot typescript
Last synced: 5 months ago
JSON representation
Vistayar
- Host: GitHub
- URL: https://github.com/hossara/vistayar
- Owner: Hossara
- License: mit
- Created: 2024-03-11T09:02:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T19:27:15.000Z (almost 2 years ago)
- Last Synced: 2025-04-22T22:00:41.433Z (about 1 year ago)
- Topics: docker, firebase-firestore, google-firebase, nodejs, nodemon, telegram, telegram-bot, typescript
- Language: TypeScript
- Homepage: https://t.me/vistayar_bot
- Size: 236 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vistayar
A node base telegram bot for [vistateam academy](https://t.me/@vistateam_admin).


`Tech stack:` Typescript, Telegraf.js, Nodemon.js, Google firebase admin
* [Vistayar](#vistayar)
* [Develop tracking](#develop-tracking)
* [Run and test](#run-and-test)
* [Production](#production)
* [Environment](#environment)
* [Contributors](#contributors)
* [Donate me](#donate-me)
### Develop tracking
- [x] MVP
- [x] Release v1
- [ ] Test
- [ ] Refactor using Nest.js
- [ ] Refactor MVP Technical debt
- [ ] Use and implement MongoDB as main database
- [ ] Test
- [ ] Implement v2 backlog
- [ ] Release v2
- [ ] Test
### Run and test
```bash
# To start redis server
docker compose up -d
# To start app
pnpm start
```
### Production
1. Build and push `Dockerfile` into your repository
2. Use Docker compose to run the bot
```yaml
services:
vista_redis_stack:
container_name: vista_redis_stack
image: redis/redis-stack:latest
environment:
REDIS_ARGS: "--requirepass redispass"
ports:
- "your_own_port:8001"
volumes:
- "./redis_data:/data"
vista_bot:
container_name: vista_bot
image: yourusername/vistayar:latest
restart: on-failure
depends_on:
- vista_redis_stack
volumes:
- "./db_info.json:/app/db_info.json"
```
`! Remember to place your own db_info.json file near docker-compose.yaml`
### Environment
| ENV | Usage | Required |
|-------------------------|------------------------------------------------------------------------------------------------------------------|:--------:|
| IS_DEV | To force the bot to use a proxy to connect to the server | FALSE |
| PROXY | Proxy url. For example: socks5://127.0.0.1:20170 | FALSE |
| BOT_TOKEN | Telegram bot token | TRUE |
| REDIS_SERVER | Redis server url. For example: redis://localhost:6380 | TRUE |
| FIREBASE_ADMIN_DATABASE | [Google firebase admin database token](https://console.cloud.google.com/iam-admin/serviceaccounts/project?hl=en) | TRUE |
### Contributors
- Hossein Araghi
- [GitHub](https://github.com/hossara)
- [LinkedIn](https://linkedin.com/in/hossara)
- [Email](mailto:hossara.dev@gmail.com)
- [Instagram](https://instagram.com/hossara.dev)
### Donate me