Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fazt/sms-node
A SMS APP using Nodejs, Mongodb, Twilio, and Socket.io
https://github.com/fazt/sms-node
mongodb nodejs socket-io twilio
Last synced: 3 days ago
JSON representation
A SMS APP using Nodejs, Mongodb, Twilio, and Socket.io
- Host: GitHub
- URL: https://github.com/fazt/sms-node
- Owner: fazt
- Created: 2020-04-22T04:13:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-22T04:24:04.000Z (over 4 years ago)
- Last Synced: 2024-04-14T07:47:04.024Z (7 months ago)
- Topics: mongodb, nodejs, socket-io, twilio
- Language: JavaScript
- Size: 79.1 KB
- Stars: 32
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node SMS APP with Twilio
this is an simple example to send and recive SMS using Node, Twilio, Mongodb, and Socket.io
![](./screenshot.png)# Required Software
* Nodejs
* Mongodb
* ngrok (in development). Twilio needs a domain to reach our server.# Installation
clone the repo
```shell
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:
```text
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
PHONE_NUMBER=
```
then execute:
```shell
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
* [Herok Patterns - Signal Pattern](https://www.heropatterns.com/)
* ngrok
* [Request body inbound Twilio SMS](https://www.twilio.com/docs/sms/twiml#twilios-request-to-your-application)
* https://www.twilio.com/docs/usage/webhooks/sms-webhooks# Issues
* https://stackoverflow.com/questions/59753149/express-handlebars-wont-render-data
* https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access
* https://stackoverflow.com/questions/59690923/handlebars-access-has-been-denied-to-resolve-the-property-from-because-it-is# 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