serverless-seed-node-typescript
v1.0.1
Published
A Serverless Seed Project
Downloads
3
Readme
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 local
This triggers the script called 'local', located in
package.json
scripts.
The script usesserverless
to locally invoke thehello
function inserverless.yml
with thehello.event.json
.serverless.yml
callshello
in handler.ts.
Run tests
Tests are run with mocha and chai.
npm test
See a list of all scripts in
package.json
=> scripts