To create a new Serverless project.
$ serverless install --url https://github.com/AnomalyInnovations/serverless-nodejs-starter --name my-projectEnter the new directory
$ cd my-projectInstall the Node.js packages
$ npm installTo run unit tests on your local
$ npm testTo run a function on your local
$ serverless invoke local --function helloTo simulate API Gateway locally using serverless-offline
$ serverless offline startRun your tests
$ npm testWe use Jest to run our tests. You can read more about setting up your tests here.
Deploy your project
$ serverless deployDeploy a single function
$ serverless deploy function --function hello