Skip to content

Latest commit

 

History

History

serverless

Serverless - AWS Node.js Typescript

This project has been generated using the aws-nodejs-typescript template from the Serverless framework.

For detailed instructions, please refer to the documentation.

Test your service

This template contains a single lambda function triggered by an HTTP request made on the provisioned API Gateway REST API /ping or /users routes with GET method.

Locally

In order to test the handler function locally, run the following commands:

  • npx sls invoke local -f handler --path get-ping-mock.json - test the /ping route
  • npx sls invoke local -f handler --path get-users-mock.json - test the /users route

Check the sls invoke local command documentation for more information.