API for communicating with nexmo, deployable to AWS Lambda through serverless or any other box directly as an HTTP server.
- (optional: if using lambda) install serverless:
yarn global add serverless
/npm i -g serverless
- install local dependencies:
yarn
ornpm install
- add your
NEXMO_KEY
andNEXMO_SECRET
to.env
(see .env.example), or use environment variables
npm run dev
to run an http server locally onprocess.env.PORT
or port 3000
- lambda:
sls deploy
to push to aws lambda usingserverless
- http:
npm run build
,npm run start