Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satont/twitch-notifier
Notify users about some streamer wen't online
https://github.com/satont/twitch-notifier
bot docker notify postgre psql stream streamer streamers ts twitch typescript users vk
Last synced: 3 months ago
JSON representation
Notify users about some streamer wen't online
- Host: GitHub
- URL: https://github.com/satont/twitch-notifier
- Owner: Satont
- Created: 2019-10-10T06:00:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T22:12:07.000Z (7 months ago)
- Last Synced: 2024-10-11T09:40:14.647Z (3 months ago)
- Topics: bot, docker, notify, postgre, psql, stream, streamer, streamers, ts, twitch, typescript, users, vk
- Language: Go
- Homepage: https://t.me/TwiNotifyBot
- Size: 9.39 MB
- Stars: 25
- Watchers: 3
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitch Notifier
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/satont/twitch-notifier)
[![Coverage Status](https://coveralls.io/repos/github/Satont/twitch-notifier/badge.svg)](https://coveralls.io/github/Satont/twitch-notifier)Bot for sending twitch streams notifications in telegram.
# Development
Download dependencies
```bash
go mod download
```### Requirements
- Golang `1.19+`
### Generate
After clone/on first setup/on schema change - you should run
```bash
make generate
```### Testing
```bash
make tests
```### Running
```bash
docker compose -f docker-compose.dev.yml up -d
make dev
```## Database schemas and migrations
### Writing schemas
All schemas located in `./ent/schema` directory, but also we are using internal structures. Internal structures located in `internal/db/db_models`. So you should change both of them.
After changing any schema in `/ent/schema` folder, you should regenerate data via `make generate`
### Migrations
#### Requirements
- [atlasgo cli](https://atlasgo.io/getting-started#installation)
- Docker### Create
```bash
make migrate-create somecoolname
```### Apply
```bash
make migrate-apply
```