This is a USSD service built using the go-vise engine.
1. go-vise
Set up go-vise
by cloning the repository into a separate directory. The main upstream repository is hosted at: https://git.defalsify.org/vise.git
git clone https://git.defalsify.org/vise.git
-
Clone the ussd repo in its own directory
git clone https://git.grassecon.net/urdt/ussd.git
-
Navigate to the project directory.
-
Enter the
services/registration
subfolder:cd services/registration
-
make the .bin files from the .vis files
make VISE_PATH=/var/path/to/your/go-vise -B
-
Return to the project root (
cd ../..
) -
Run the USSD menu
go run cmd/main.go -session-id=0712345678
-
go run cmd/main.go -session-id=0712345678
-
go run cmd/africastalking/main.go
-
go run cmd/async/main.go
-
go run cmd/http/main.go
Below are the supported flags:
-
-session-id
:Specifies the session ID. (CLI only).
Default:
075xx2123
.Example:
go run cmd/main.go -session-id=0712345678
-
-d
:Enables engine debug output.
Default:
false
.Example:
go run cmd/main.go -session-id=0712345678 -d
-
-db
:Specifies the database type.
Default:
gdbm
.Example:
go run cmd/main.go -session-id=0712345678 -d -db=postgres
Note: If using
-db=postgres
, ensure PostgreSQL is running with the connection details specified in your.env
file.