Go to file
2025-01-29 10:14:01 +03:00
.github/workflows ci/cd: add Dockerfile and GH builds 2025-01-24 09:25:09 +03:00
args Gofmt, remove commented code 2025-01-21 15:43:26 +00:00
cmd Adapt override to non-pointer values 2025-01-24 15:03:47 +03:00
config Adapt override to non-pointer values 2025-01-24 15:03:47 +03:00
debug Gofmt, remove commented code 2025-01-21 15:43:26 +00:00
devtools Adapt override to non-pointer values 2025-01-24 15:03:47 +03:00
doc Add modules overview 2025-01-13 07:23:04 +00:00
handlers update test 2025-01-24 15:02:30 +03:00
internal/cmd Gofmt, remove commented code 2025-01-21 15:43:26 +00:00
menutraversal_test update test data file 2025-01-25 09:55:39 +03:00
profile Gofmt, remove commented code 2025-01-21 15:43:26 +00:00
services set UseApi and storageservice to HttpAccountService 2025-01-24 07:59:33 +03:00
ssh Gofmt, remove commented code 2025-01-21 15:43:26 +00:00
store Merge branch 'master' into alias-fqdn 2025-01-24 07:41:33 +03:00
testutil Adapt override to non-pointer values 2025-01-24 15:03:47 +03:00
.dockerignore ci/cd: add Dockerfile and GH builds 2025-01-24 09:25:09 +03:00
.env.example add alias search domains 2025-01-17 15:02:58 +03:00
.gitignore Added back africastalking executable, vise-code 2025-01-11 15:21:51 +00:00
Dockerfile docker: change bin name -> sarafu-at 2025-01-24 09:26:00 +03:00
go.mod use the latest changes from grassrootseconomics/visedriver-africastalking 2025-01-29 10:14:01 +03:00
go.sum use the latest changes from grassrootseconomics/visedriver-africastalking 2025-01-29 10:14:01 +03:00
LICENSE Add license, readme 2025-01-12 15:56:59 +00:00
README.md Update README.md 2025-01-13 08:25:54 +01: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://git.defalsify.org/vise.git

git clone https://git.defalsify.org/vise.git

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.