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