dsnair / upNext

Tired of waiting in line, being bored and wasting your time? Get your number in line and leave to grab coffee or anything else you'd rather do. upNext will text you when you're up next in line!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Product Description

Tired of waiting in line, being bored and wasting your time? Get your number in line and leave to grab coffee or anything else you'd rather do. upNext will text you when you're up next in line!

screenshot of text messages showing how the product works

Steps to Send (Outbound) MMS

#1

npm install twilio

#2 Write the send-sms.js file

#3

  • Write the twilio.env file
  • Include .env in .gitignore
source ./twilio.env

#4

node send-mms.js

returns sends an MMS to the number provided

STEPS to Receive (Inbound) SMS

#1

npm init -y
npm install express ngrok

#2 Write the express app in server.js, then

node server.js

returns the ngrok public URL

#3 In your Twilio account, go to Manage Numbers > Active Numbers > Messaging > A Message Comes In:

  • select Webhook from the dropdown
  • copy-paste the ngrok public URL in the input box
  • Save

#4 Respond to the SMS from the Twilio number

  • this sends a request to the ngrok public URL
  • you may go to http://localhost:4040 in the browser to inspect the request and response and to debug

About

Tired of waiting in line, being bored and wasting your time? Get your number in line and leave to grab coffee or anything else you'd rather do. upNext will text you when you're up next in line!


Languages

Language:JavaScript 100.0%