# NDOH MomConnect Apps

Registration and Change submission formats can be found here:
https://github.com/praekeltfoundation/ndoh-hub/blob/develop/README.md

## Generating translations

You can run a command like this from the `config/` directory to update
the JSON files when the PO catalogs change:

```
find . -name "go-app-ussd_popi_faq.*po" -exec jspot json {} \;
```

# NDOH MomConnect Apps

Registration and Change submission formats can be found here:
https://github.com/praekeltfoundation/ndoh-hub/blob/develop/README.md

## Generating translations

You can run a command like this from the `config/` directory to update
the JSON files when the PO catalogs change:

```
find . -name "go-app-ussd_popi_faq.*po" -exec jspot json {} \;
```

## Trying out the applications

There is a docker compose setup that should allow someone to easily get all the
components up and running to be able to easily try out the USSD lines.

Requirements:
 - docker
 - docker-compose
 - curl
 - telnet

Firstly, change to the docker-compose folder and run the `up` command:
```
cd docker-compose
docker-compose up
```

Then, once all the services are up and running, run the setup script for the
initial setup of all the services:
```
./setup.sh
```

Then, you can use telnet to access the various USSD lines:
 - Public USSD: `telnet localhost 9001`

Currently, only the English language is set up and working. Any other language
selections will result in an error

Example:
```
~ telnet localhost 9001

Escape character is '^]'.
Please provide "to_addr":
*120*1234#
Please provide "from_addr":
+27821234567
[Sending all messages to: *120*1234# and from: +27821234567]
Welcome to the Department of Health's MomConnect. Please select your language
1. isiZulu
2. isiXhosa
3. Afrikaans
4. English
5. Sesotho sa Leboa
6. More
```
Update readme with how to use docker-compose setup
Update readme with how to use docker-compose setup
