USSD service
Go to file
2024-11-25 11:59:51 +03:00
.github/workflows fix: github ci spec 2024-11-19 17:18:13 +03:00
cmd format the number to a standard version 2024-11-25 11:30:09 +03:00
common format the number to a standard version 2024-11-25 11:30:09 +03:00
config use the correct base URL 2024-11-20 18:45:37 +03:00
dev feat: dockerfile and github based CI build for Africastalking variant (#174) 2024-11-19 15:15:24 +01:00
devtools/admin wrap in devtools/admin 2024-11-01 16:44:54 +03:00
initializers rename file 2024-10-19 13:41:19 +03:00
internal use the formatted number when checking if it is registered 2024-11-25 11:59:51 +03:00
menutraversal_test updated the template to include the alias and address 2024-11-20 18:55:58 +03:00
models set the TokenDecimals as int to match the API response 2024-11-15 20:50:07 +03:00
remote added the CheckAliasAddress function to the account service and test mocks 2024-11-20 18:34:48 +03:00
services/registration Merge branch 'master' into alias-address-validation 2024-11-24 16:48:03 +03:00
.dockerignore fix: Dockerfile to include .env 2024-11-19 17:25:20 +03:00
.env.example use a single bearer token 2024-11-15 18:35:49 +03:00
.gitignore ignore .log files 2024-11-07 16:41:38 +03:00
Dockerfile debug: postgres conn string 2024-11-19 17:53:06 +03:00
go.mod use the latest updates from ussd-data-service 2024-11-20 18:32:14 +03:00
go.sum use the latest updates from ussd-data-service 2024-11-20 18:32:14 +03: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.