Skip to content

Application using the Plivo API to send SMS messages from a Desktop application. Built with a ReactJS frontend and a Rails backend

Notifications You must be signed in to change notification settings

gwhitlock8/plivo_app_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plivo Messaging App

This application usings Plivo's messaging APIs to send and receive text messages from a host web application.

Frontend

Technologies:

Built using create-react-app: https://www.npmjs.com/package/create-react-app

Backend

Technologies:

Other Technologies:

Setup Instructions

After cloning both the front and backend repos, please follow the steps listed below to get the application up and running:

  1. Create Plivo trial account at https://www.plivo.com/ and follow the instructions after clicking the Get Started button.
  2. From the terminal, navigate to the root directory of the backend repo and run the following command:
bundle install
  1. Create a .env file in the backend root directory and enter the your Plivo variables, using the following format:
export PLIVO_AUTH_ID=
export PLIVO_AUTH_TOKEN=
export PLIVO_PHONE_NUMBER=
  1. In the terminal, type the following command (you will need to have ngrok installed):
ngrok http 3001

This will create a tunnel to your local host on port 3001. Grab the URL from the terminal (sans http://) and paste the following before the last end of your config/environments/development.rb file:

config.hosts << "[NGROK URL]"
  1. Navigate to the Plivo dashboard and create a new XML application, linking it to your Plivo phone number. Within the application, paste the ngrok URL in the Message URL field, ensuring that POST is selected in the dropdown. The URL should look similar to this: http://c80bd249.ngrok.io/webhooks/plivo

  2. Create and migrate the database then start your server by running the following in the root folder of the app backend:

rails db:create
rails db:migrate
rails s -p 3001

The -p flag starts the server on port 3001

  1. Now navigate to the root folder of the frontend repo and run:
npm install
npm run start

About

Application using the Plivo API to send SMS messages from a Desktop application. Built with a ReactJS frontend and a Rails backend

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published