frixou89 / nodejs-sms-send-code

Express Twilio integration. A simple form for sending SMS to end-user

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nodejs Twilio send SMS

Installation


git clone https://github.com/frixou89/nodejs-sms-send-code
cd nodejs-sms-send-code
npm install

Configuration


  1. Copy .env.example contents to .env.
  2. Fill the envirnoment variables. Example:
    #ENVIRONMENT
    NODE_ENV = dev
    
    #APP
    HOST = localhost
    PORT = 3000
    
    #TWILIO
    TWILIO_ACCOUNT_SID = <twilio_SID>
    TWILIO_NUMBER = <twilio_number>
    TWILIO_AUTH_TOKEN = <twilio_auth_token>
    

Running


To run project there are two scripts available:

  1. with nodemon installed
    npm run dev
    
  2. normal start
    npm run start
    

About

Express Twilio integration. A simple form for sending SMS to end-user


Languages

Language:JavaScript 81.7%Language:CSS 16.0%Language:HTML 2.3%