Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/girliemac/send-sms
- Owner: girliemac
- Created: 2016-09-27T00:30:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-29T20:28:12.000Z (almost 3 years ago)
- Last Synced: 2024-11-02T00:50:20.905Z (4 months ago)
- Language: JavaScript
- Size: 835 KB
- Stars: 19
- Watchers: 4
- Forks: 39
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.
## 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.