https://github.com/attack-monkey/serverless-seed-node-ts
A serverless seed project using node + typescript
https://github.com/attack-monkey/serverless-seed-node-ts
Last synced: 2 months ago
JSON representation
A serverless seed project using node + typescript
- Host: GitHub
- URL: https://github.com/attack-monkey/serverless-seed-node-ts
- Owner: attack-monkey
- Created: 2018-12-14T20:04:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T20:09:22.000Z (over 7 years ago)
- Last Synced: 2025-01-25T08:43:58.762Z (over 1 year ago)
- Language: TypeScript
- Size: 60.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Serverless Seed Project ( _node_ + typescript )
========================
## Install
1. Fork the project
2. `npm install`
3. Globally install serverless (so you can use the serverless command in CLI) `npm install -g serverless`
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