Skip to content
/ sms-node Public

A SMS APP using Nodejs, Mongodb, Twilio, and Socket.io

Notifications You must be signed in to change notification settings

fazt/sms-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node SMS APP with Twilio

this is an simple example to send and recive SMS using Node, Twilio, Mongodb, and Socket.io

Required Software

  • Nodejs
  • Mongodb
  • ngrok (in development). Twilio needs a domain to reach our server.

Installation

clone the repo

git clone https://github.com/FaztTech/sms-node
cd sms-node

create a file with the name .env in the root project with the following Environment variables:

TWILIO_ACCOUNT_SID=<YOUR TWILIO ACCOUNT SID>
TWILIO_AUTH_TOKEN=<YOUR TWILIO AUTH TOKEN>
PHONE_NUMBER=<THE TRIAL PHONE NUMBER OF YOUR TWILIO PROJECT>

then execute:

npm i
npm start # or npm run dev (to execute with nodemon)

Environment variables

  • TWILIO_ACCOUNT_SID
  • TWILIO_AUTH_TOKEN
  • PHONE_NUMBER
  • PORT (optional)

Useful Resources

Issues

TODO

  • add authentication
  • handle multiple sockets connection
  • integrate Docker
  • add tests
  • create a contact list
  • pick a user from the message history to send a message

About

A SMS APP using Nodejs, Mongodb, Twilio, and Socket.io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published