How to Create SMS Enabled NodeJS App Within 5 Minutes

What can you do within 5 minutes? Make a cup of coffee? Now you can create an SMS enabled application using ShoutOUT Lite SDK for Node JS, in less than 5 minutes.

Don’t believe me? Okay then, set your clock now. 🙂 ( 0 min 0 second)

Create a folder for your nodejs app and go to that directory. Open a terminal.

  1. Create an App (0 min 30 seconds)

https://gist.github.com/maduraPradeep/f777090b18fe6cdec596135d5d6bbe5e.js

Give the application name and other details like version, author etc. (just press enter for default settings). In my case, the application name is mysmsclient.

2. Install ShoutOUT SDK (1 min 15 seconds)

https://gist.github.com/maduraPradeep/135ecaa0aaa59f13cc4b52fe4be448fb.js

This will download ShoutOUT SDK from npm (Node package manager. This will take some time to complete depending on your computer’s performance and network bandwidth).

3. Create a file name index.js in the directory (1 min 25 seconds)

4. Configure SDK (2 min 5 seconds)

https://gist.github.com/maduraPradeep/255b8818208fb0de72ebef3f0e8e23ed.js

Configure SDK in your index.js as follows. Paste your API key on the 3rd line, instead of ‘API_KEY’ (Check step 5 to obtain your API Key).

5. Get your API Key from your ShoutOUT Lite profile (3 min 50 seconds)

a. Go to tools

b. Click on Copy to Clipboard in API Keys section

6. Configure your SMS (4 min 35 seconds)

https://gist.github.com/maduraPradeep/c346ce4c5c9ef8211a2e18286d4b5af0.js

Change content, destination and source as required (Default source is “ShoutDEMO”. If you need to change that, you have to send a sender ID request from ShoutOUT Lite dashboard. In this 5 min tutorial, I will skip that step and use the default source)

7. Run the application (4 min 45 seconds)

https://gist.github.com/maduraPradeep/9b7729b58557fea760d76f9efc3b33b0.js

Run the application. If everything is right, a message will be received to the destination number.

You have 15 seconds to like and share this post.. 😀

Create your ShoutOUT account (Try it for free :))

https://lite.getshoutout.com

Resources:

http://docs.getshoutout.com

https://github.com/shoutout-labs/shoutout-sdk-nodejs

Leave a Comment

Your email address will not be published. Required fields are marked *