This project provides a quickstart setup for Serverless projects which can also be run locally for quicker iteration/development.
- Builds from Typescript.
- Express server runs on port 3000
- AWS Lambda requirements: Node 6.10, NPM: 3.8.6
Build the source from TypeScript to JavaScript:
$ npm run build
Run your functions locally as a REST API:
$ npm run start-dev
GET /api/jokes
GET /api/jokes/random
POST /api/jokes
GET /api/quotes
deploy the built code to AWS Lambda using Serverless
$ npm run deploy