- go 1.19
- CGO_ENABLED=1 go build --tags "fts5" -o vsd
- ./vsd serve
- admin ui: http://127.0.0.1/_/
- user ui: http://127.0.0.1
- CGO_ENABLED: sqlite full text search (https://sqlite.org/fts5.html)
- run socat (redirect 8080 -> 80)
socat TCP-LISTEN:80,fork TCP:127.0.0.1:8090
(needed for auth via telegram locally) - remove cookie for 127.0.0.1 (if not first run)
- use live reload with air (https://github.com/cosmtrek/air): just run air
- dump db:
sqlite3 pb_data/data.db .dump > data.sql
- dev bot: data-telegram-login="artemiyrobot"
- prod bot verysmartdogbot
- bot api key place in tgbot file