module
0.0.0-20241120183321-3ca17b759095
Repository: https://github.com/arumandesu/go-revise.git
Documentation: pkg.go.dev
# README
go-revise
Table of Contents
About The Project
A Telegram bot designed to help you retain and reinforce information over time. Whether it's an article or video, the bot will remind you to revise it at the right time.
More details
Intervals
The bot uses the Spaced repetition technique to remind you to revise the information. The intervals are as follows:
Built With
Getting Started
Prerequisites
-
Go version 1.23.0
-
go version task --version
Installation
- Clone the repo
git clone https://github.com/ARUMANDESU/go-revise.git
- Change directory
cd go-revise
- Write the environment variables in the
.env
fileENV_MODE=local #local, test, dev, prod # sqlite3 database file name, it will be created in cache directory # On linux in $HOME/.cache. On Darwin, in $HOME/Library/Caches. On Windows in %LocalAppData% DATABASE_URL=go-revise.db TELEGRAM_TOKEN= # Telegram bot token generated by BotFather # URL to which Telegram will send updates. # Is pointed to the port on which the service listens, for local development use ngrok or similar services # But for dev and prod, it should be a public URL with a valid SSL certificate (https) TELEGRAM_WEBHOOK_URL= TELEGRAM_PORT=4000 # Port on which the service will listen for updates TELEGRAM_URL=:$TELEGRAM_PORT HTTP_PORT=5000
- Run the service
task local
Testing
- Coverage
task tc
- Unit tests
task tu
- Integration tests
task ti
Structure