Go to file
2025-01-15 16:04:49 +03:00
args Include local handlers code 2025-01-10 20:32:22 +00:00
cmd Toggle services with build tags, cmd now runs with dev api 2025-01-15 00:16:03 +00:00
config Reinstate http server configs, rehabilitate cmd cli 2025-01-12 15:29:12 +00:00
debug Factor out api config, add missing source files from refactor 2025-01-12 09:59:36 +00:00
devtools Add user store converter, improve config separation 2025-01-12 12:14:25 +00:00
doc Add modules overview 2025-01-13 07:23:04 +00:00
handlers log the correct data key 2025-01-15 16:04:49 +03:00
menutraversal_test Fix handlers deps up until new menuhandler construction 2025-01-10 20:51:10 +00:00
profile Move in profile struct 2025-01-11 21:14:24 +00:00
services Merge branch 'master' into data-migration 2025-01-15 11:00:08 +03:00
ssh Use sarafu-api module 2025-01-11 20:33:34 +00:00
store Introduce initial language code setting 2025-01-14 15:34:17 +00:00
testutil Aggregate configs and expose locally relevant 2025-01-12 10:33:15 +00:00
.env.example Reinstate http server configs, rehabilitate cmd cli 2025-01-12 15:29:12 +00:00
.gitignore Added back africastalking executable, vise-code 2025-01-11 15:21:51 +00:00
go.mod Upgrade deps 2025-01-15 07:26:34 +00:00
go.sum Upgrade deps 2025-01-15 07:26:34 +00: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.