Ussd Menu App - Node.js
To run the application follow the steps below
- Make sure Node.js is installed
- Create a directory to hold your application and make it your working directory.
- Use the $npm init command to create a package.json file for your application.
- Now install Express in the your directory. $ npm install express
- To easily compose USSD menus in Node.js, compatible with Africastalking API or Hubtel API, add this module $npm install ussd-menu-builder
YOUR WORKING ENV IS NOW SET.
.......AFRICA'S TALKING..........
- Create account with Africa's talking (I'ts freee).
- Log in and go to Sandbox.
- Select USSD - Create channel
- Select a channel and enter callback url (We'll get it from ngrok).
- Create channel.
...........Ngrok...................
- Download and install Ngrok
- Navigate to the install folder and run it
- Set it to connect to the port set on your app js file
eg $ngrok http 5050
- Copy the forwarding link (will be your callback url)
........Back to AT.................
- Launch simulator
- Dial the service code provide by AT
Should be working:)