Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 808 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 808 Bytes

Reporting Telegram Bot

Telegram bot for managing working time.

Domain termines:

  • Report: report of worked hours per day. List of timeRecords binded to a day.
  • TimeRecord: minimal unit of time that employee adds to report for specified category.

Local development

  1. Setup PostgresQL database, run command:
docker-compose -f docker-compose-test.yml up -d
  1. Configure and run Spring Boot Application:
  • Setup two env vars: bot.token=${BOT_TOKEN};bot.username=${BOT_USERNAME}
  • Add VM Options: -Dspring.profiles.active=test

With these configurations - run SpringBoot main method.

Technological stack

  • SpringBoot as a skeleton framework
  • Telegram-bot SpringBoot starter
  • Spring Data starter
  • Spring State Machine
  • Spring Scheduler as a task manager
  • PostgresQL databases