This repository is a part of FriendAlert project. Root repository of FriendAlert project: https://github.com/Ivanuil/FriendAlert
Friend Alert is a Telegram bot, made for School 21 students. It allows users to subscribe for their friends entering and leaving campus. It also provides extensive statistics on School 21 campuses and participants.
Project includes two microservices:
-
FriendAlertBot (java) ← This repository
FriendAlertBot gathers data from School 21 platform and sends out messages for users. It also logs data for analytics.
-
FriendAlertAnalytics (python)
FriendAlertAnalytics provides analytics data visualisation
- Spring Boot
- Hibernate + Liquibase + PostgreSQL
- ClickHouse + ClickHouseHttpClient
- JUnit + TestContainers
- In file application-auth.properties
specify School 21 platform credentials and Telegram bot token.
You might want to run the following script to prevent git from commiting this file:
git update-index --skip-worktree -- src/main/resources/application-auth.properties
- Run PostgreSQL and ClickHouse:
docker compose up postgres clickhouse -d
- Run FriendAlertBotApplication.java
- Repeat step 1 from How to run locally
- Run docker compose:
docker compose up -d