Development Setup
Prerequisites
- Install Rust
- Install just (
cargo install just) - Install Node.js (version 20.19.0+ or 22.12.0+)
- Install sqlx-cli (
cargo install sqlx-cli) - Install pre-commit (
apt install pre-commitorpip install pre-commit) - Run
pre-commit install
Setup
- In the
frontenddirectory, runnpm installto install frontend dependencies. - Create a telegram bot by contacting
@BotFatherand issuing/newbot. (More details). Save its token. - Create a telegram group for testing, and invite your bot to it. Get the
group ID (it's a negative number) by sending
/helpto that group. -
Create a file named
.envwith the following contents: -
Run
just reset_db seedto createdev.dbwith seed data, orjust reset_dbfor an empty database.
Running
Or run backend and frontend separately in parallel:
Browse to http://localhost:5173
Documentation
To serve the documentation site locally:
The site will be available at http://127.0.0.1:8000.