-
Run
go mod tidy
. -
Create
.env
file fromexample.env
and set values and secrets to.env
. -
Source the
.env
file.set -a && . .env && set +a
-
Start MongoDB.
sudo -E ./run-mongo.sh
-
Start
ngrok
(Need to install before running)ngrok http 8080
-
Run the program.
go run samplelinebot
-
Stop MongoDB
sudo -E ./run-mongo.sh stop
-
Remove MongoDB
sudo -E ./run-mongo.sh remove