Skip to content

nexmo-community/send-sms-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sending SMS from Web

This is a simple web app written in Node.js with Express. Additionally, I am using W3C Web Notifications API for the front-end UI to show the SMS receipt message with Socket.io.

screencast

Running This Demo Locally on Your Machine

1. Install dependencies

$ npm install

2. Set up a config.js with Your Credentials

Sign up at Nexmo to get your own API keys and a virtual number.

Create config.js in /server. The file should include the credentials.

module.exports = {
  api_key: 'f321a...',
  api_secret: '18e9aad...',
  number: '14155551234'
};

3. Run the Node App

$ node server/index.js

4. Launch it on Browser

Go to http://localhost:4000 and send text messages.

About

Nexmo demo: Sending SMS from web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.8%
  • CSS 25.4%
  • HTML 16.8%