Installation
git clone https://github.com/frixou89/nodejs-sms-send-code
cd nodejs-sms-send-code
npm install
Configuration
- Copy
.env.example
contents to.env
. - 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:
- with
nodemon
installednpm run dev
- normal start
npm run start