Review Bot is a chatbot for business owners to connect with their customers using Facebook's Messenger API. It includes:
- a dashboard for business owners to define their triggers.
- a backend server serves as a bot with mockup for authentication and other dependency components.
This repository serves as an example of a modern code structure in 2021. It is built with:
-
Backend: Go, Postgres, Docker, gorm, JSON API, code generation with ggen
-
Frontend: TypeScript, Svelte, Snowpack
Install Go, Node, Docker, Docker Compose (see Prerequisites). Then run the following commands:
# build backend
cd rbot/be
./scripts/build.sh
# build frontend
cd rbot/apps/board
./scripts/build.sh
# start (in backend dir)
cd rbot/be
./bin/rbot-server -config-file sample-config.yaml
# or use go run
cd rbot/be
go run ./cmd/rbot-server -config-file sample-config.yaml
Then go to localhost:8000.
cd rbot/apps/board
./scripts/watch.sh
cd rbot/be
./scripts/generate-all.sh
Then go to localhost:8080.
See Deploy→Production.
Name | Version | Install |
---|---|---|
Go | v1.16+ | https://golang.org/doc/install |
Node | v14 LTS | https://nodejs.org/en/download/ |
Docker | v20 | https://docs.docker.com/get-docker/ |
Docker Compose | v1.29 | https://docs.docker.com/compose/install/ |
Kubernetes | v1.19 | https://kubernetes.io/docs/tasks/tools/ |
Helm | v3.1 | https://helm.sh/docs/intro/install/ |
TODO
MIT