- Install dependencies
npm install
- Create
.env
file based on.env.template
and add Twilio credentials - Run server
npm start
- Or run the server in development mode (i.e. with auto-reload on changes)
npm run start-dev
This boilerplate includes:
- Twilio client. Specify
TWILIO_ACCOUNT_SID
andTWILIO_ACCOUNT_SECRET
in.env
file - Sample route (
/token
) to generate Twilio Token. You need to fill inTWILIO_TOKEN_API_KEY
andTWILIO_TOKEN_API_SECRET
in .env with an API key ngrok
to publish your server. Specify you subdomain using theNGROK_SUBDOMAIN
in.env
filedotenv
to import variable from.env
filecors
to allow CORS on your server (so you can serve APIs usable by browsers)nodemon
to relad express everytime you change a file. This is a developer dependency and is used only withnpm run start-dev