go-fcapp is a Golang application for managing FamilyConnect wehbhook calls
As go-fcapp is a go application, it compiles to a binary and that binary along with the config file is all you need to run it on your server. You can find bundles for each platform in the releases directory. We recommend running go-fcapp behind a reverse proxy such as nginx or Elastic Load Balancer that provides HTTPs encryption.
go-fcapp uses a tiered configuration system, each option takes precendence over the ones above it:
- The configuration file
- Environment variables starting with
FCAPP_
- Command line parameters
We recommend running go-fcapp with no changes to the configuration and no parameters, using only
environment variables to configure it. You can use % go-fcapp --help
to see a list of the
environment variables and parameters and for more details on each option.
For use with your RapidPro instance, you will want to configure these settings:
FCAPP_AUTH_TOKEN
: The FamilyConnect RapidPro authorization TokenFCAPP_PREBIRTH_CAMPAIGN
: The UUID for the prebirth campaign with message events for all languagesFCAPP_POSTBIRTH_CAMPAIGN
: The UUID for the postbirth campaign with message events for all languagesFCAPP_FAMILYCONNECT_URI
: The FamilyConnect URI (default:https://app.familyconnect.go.ug
)FCAPP_ROOT_URI
: The root uri for the api endpoints for the FamilyConnect's RapidProFCAPP_BABY_TRIGGER_FLOW_UUID
: The UUID for the flow in FamilyConnect that maps to the baby triggerFCAPP_SERVER_PORT
: The port on which to run the go-fcapp serviceFCAPP_SMSURL
: The SMSURL to use for sending SMS through this app
Install go-fcapp source in your workspace with:
go get github.com/gcinnovate/go-fcapp
Build go-fcapp with:
go install github.com/gcinnovate/go-fcapp/..
This will create a new executable in $GOPATH/bin called go-fcapp
.