Catapult API demo app to verify a phone number by sending to it a SMS or phone call with confirm code
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
readme_images
views
.editorconfig
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
LICENSE
PULLREQUEST.md
PULL_REQUEST_TEMPLATE.md
Procfile
README.md
app.json
index.js
models.js
package.json
routes.js

README.md

Phone Verication App

This application is outdated, but will be updated soon!

This example app shows how you can use the Catapult API verify a phone number by sending to it a SMS or phone call with confirm code.

Deploy

Uses the:

Prerequisites

Deploy To PaaS

Deploy

Env Variables Required To Run

  • CATAPULT_USER_ID
  • CATAPULT_API_TOKEN
  • CATAPULT_API_SECRET

Demo

Screen Shot Open the app in web browser. You will list of verified phone numbers. To verify a phone number go to /verify.

Install on Local Machine

Before running this app run mongodb instance and export next environment variables :

  • CATAPULT_USER_ID
  • CATAPULT_API_TOKEN
  • CATAPULT_API_SECRET
# clone the app

git clone git@github.com:BandwidthExamples/node-phone-verificator.git

# install dependencies

npm install

# run the app

cd ..

PORT=3000 npm start 

Run in another terminal

ngrok http 3000 #to make ngrok to open external access to localhost:3000 

Open in browser your external url (it will be shown by ngrok).

Deploy on Heroku Manually

Create account on Heroku and install Heroku Toolbel if need.

Run heroku create to create new app on Heroku and link it with current project.

Run heroku addons:create mongolab to add mongodb support.

Configure the app by commands

 heroku config:set CATAPULT_USER_ID=your-user-id
 heroku config:set CATAPULT_API_TOKEN=your-token
 heroku config:set CATAPULT_API_SECRET=your-secret

Run git push heroku master to deploy this project.

Run heroku open to see home page of the app in the browser