1.0.1 • Published 7 years ago
serverless-seed-node-typescript v1.0.1
Serverless Seed Project ( node + typescript )
Install
- Globally install serverless (so you can use the serverless command in CLI)
npm install -g serverless - Globally install douglas (this is a npm seed project installer)
npm install -g douglas douglas get serverless-seed-node-typescript- Test that it's working by locally invoking (see below) and running the tests -
npm test - Follow instructions for locally invoking serverless function
Locally invoking a lambda (serverless function)
To locally invoke the serverless function...
npm run localThis triggers the script called 'local', located in
package.jsonscripts.
The script usesserverlessto locally invoke thehellofunction inserverless.ymlwith thehello.event.json.serverless.ymlcallshelloin handler.ts.
Run tests
Tests are run with mocha and chai.
npm testSee a list of all scripts in
package.json=> scripts