Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/girliemac/send-sms

Nexmo demo: Sending SMS from web
https://github.com/girliemac/send-sms

Last synced: 3 months ago
JSON representation

Nexmo demo: Sending SMS from web

Awesome Lists containing this project

README

        

# 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](public/images/nexmo-sms-notification-demo.gif)

## Running This Demo Locally on Your Machine

### 1. Install dependencies

```bash
$ npm install
```

### 2. Set up a config.js with Your Credentials

Sign up at [Nexmo](https://nexmo.com) to get your own API keys and a virtual number.

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

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

### 3. Run the Node App

```bash
$ node server/index.js
```

### 4. Launch it on Browser

Go to [http://localhost:4000](http://localhost:4000) and send text messages.