Go to file
2025-01-12 10:24:50 +00:00
.github/workflows fix: github ci spec 2024-11-19 17:18:13 +03:00
config Fix missing err in config 2025-01-12 10:24:50 +00:00
dev Remove dialoguss reference 2025-01-11 22:29:08 +00:00
doc Segment tx userdata types, add internals docs 2024-12-11 19:13:13 +00:00
entry Remove persister chainer for menu handler 2025-01-11 08:08:52 +00:00
env Fix missing err in config 2025-01-12 10:24:50 +00:00
errors Remove last internal package 2025-01-11 21:47:57 +00:00
request Properly isolate http session handler 2025-01-11 08:33:52 +00:00
session Rename http source file 2025-01-11 22:38:38 +00:00
storage Move out common, util, debug, storage to sarafu-vise 2025-01-12 07:59:03 +00:00
testutil Move out API services related code 2025-01-11 16:31:06 +00:00
.dockerignore ci: fix missing ssh dir 2025-01-06 11:19:36 +03:00
.env.example Merge branch 'master' into lash/purify-more 2025-01-06 08:59:42 +00:00
.gitignore ignore .log files 2024-11-07 16:41:38 +03:00
Dockerfile feat: inject build string in ssh binary, expose default ssh port 2025-01-06 11:09:51 +03:00
go.mod Rehabilitate go test running 2025-01-10 12:03:37 +00:00
go.sum Rehabilitate go test running 2025-01-10 12:03:37 +00:00
LICENSE init: project 2024-08-12 14:30:13 +08:00
Makefile init: project 2024-08-12 14:30:13 +08:00
README.md updated README 2024-11-08 20:35:17 +03:00
sample_tokens.json define importable token list 2024-10-08 13:41:09 +03:00

URDT USSD service

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.