serverless-seed-node-typescript

1.0.1 • Public • Published

Serverless Seed Project ( node + typescript )

Install

  1. Globally install serverless (so you can use the serverless command in CLI) npm install -g serverless
  2. Globally install douglas (this is a npm seed project installer) npm install -g douglas
  3. douglas get serverless-seed-node-typescript
  4. Test that it's working by locally invoking (see below) and running the tests - npm test
  5. 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 uses serverless to locally invoke the hello function in serverless.yml with the hello.event.json. serverless.yml calls hello in handler.ts.

Run tests

Tests are run with mocha and chai.


npm test

See a list of all scripts in package.json => scripts

/serverless-seed-node-typescript/

    Package Sidebar

    Install

    npm i serverless-seed-node-typescript

    Weekly Downloads

    9

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    21 kB

    Total Files

    26

    Last publish

    Collaborators

    • attack-monkey