Go to file
2025-08-20 09:37:15 +03:00
.github/workflows ci/cd: add Dockerfile and GH builds 2025-01-24 09:25:09 +03:00
args replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
cmd replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
config add the pool variables to the config 2025-05-20 10:25:27 +03:00
debug replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
devtools replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
doc Add modules overview 2025-01-13 07:23:04 +00:00
handlers replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
internal replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
menutraversal_test replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
profile added TestInsertOrShift 2025-02-04 11:42:14 +03:00
services removed existing INCMP statement 2025-07-21 12:34:45 +03:00
ssh replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
store replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
testutil replace the go-vise package and remove logdb 2025-08-19 15:58:07 +03:00
.dockerignore ci/cd: add Dockerfile and GH builds 2025-01-24 09:25:09 +03:00
.env.example added missing env variables 2025-08-18 16:19:22 +03:00
.gitignore MAJOR REFACTOR: project-tidyup - menuhandler and tests (#90) 2025-07-14 14:42:54 +02:00
Dockerfile update the repository to be used on build and the README 2025-08-20 09:37:15 +03:00
go.mod use updated visedriver-africastalking 2025-08-19 17:35:42 +03:00
go.sum use updated visedriver-africastalking 2025-08-19 17:35:42 +03:00
LICENSE Add license, readme 2025-01-12 15:56:59 +00:00
README.md update the repository to be used on build and the README 2025-08-20 09:37:15 +03:00

URDT USSD service

img

This is a USSD service built using the go-vise engine.

Prerequisites

1. go-vise

Set up go-vise by cloning the repository into a separate directory. The main upstream repository is hosted at: https://github.com/grassrootseconomics/go-vise

git clone https://github.com/grassrootseconomics/go-vise

Setup

  1. Clone the ussd repo in its own directory

    git clone https://git.grassecon.net/urdt/ussd.git
    
  2. Navigate to the project directory.

  3. Enter the services/registration subfolder:

    cd services/registration
    
  4. make the .bin files from the .vis files

    make VISE_PATH=/var/path/to/your/go-vise -B
    
  5. Return to the project root (cd ../..)

  6. Run the USSD menu

    go run cmd/main.go -session-id=0712345678
    

Running the different binaries

  1. CLI:

    go run cmd/main.go -session-id=0712345678
    
  2. Africastalking:

    go run cmd/africastalking/main.go
    
  3. Async:

    go run cmd/async/main.go
    
  4. Http:

    go run cmd/http/main.go
    

Flags

Below are the supported flags:

  1. -session-id:

    Specifies the session ID. (CLI only).

    Default: 075xx2123.

    Example:

    go run cmd/main.go -session-id=0712345678
    
  2. -d:

    Enables engine debug output.

    Default: false.

    Example:

    go run cmd/main.go -session-id=0712345678 -d
    
  3. -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.

License

AGPL-3.0.