A Serverless starter that adds ES6, TypeScript, serverless-offline, linting, environment variables, and unit test support. This application provides endpoints to perform CRUD operations on notes
resource and a hello
resource for public testing.
A demo version of this service is hosted on AWS - https://cjz96vspp7.execute-api.ap-south-1.amazonaws.com/prod/hello
Part of the Serverless Stack guide.
Serverless Node.js Starter uses the serverless-bundle plugin and the serverless-offline plugin. It supports:
- Generating optimized Lambda packages with Webpack
- Using ES6 or TypeScript in your handler functions
- Run API Gateway locally
- Use
serverless offline start
- Use
- Support for unit tests
- Run
npm test
to run your tests
- Run
- Sourcemaps for proper error messages
- Error message show the correct line numbers
- Works in production with CloudWatch
- Lint your code with ESLint
- Add environment variables for your stages
- No need to manage Webpack or Babel configs