Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 706 Bytes

README.md

File metadata and controls

41 lines (34 loc) · 706 Bytes

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