Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 905 Bytes

File metadata and controls

59 lines (44 loc) · 905 Bytes

[repo-name]

Ping API endpoints every (1) minute(s) to check if it's healthy

How to run

Run locally

$ yarn run local -f ping

Deploy lambda development

$ yarn run deploy

Deploy lambda production

$ yarn run deploy --stage prod

Remove lambda

$ yarn run remove [--stage prod]

How to run

  • Make sure you have set AWS credential using this command:
serverless config credentials --provider aws --key [your aws key] --secret [your aws secret key]

Locally for development (2 approaches)

Note: It's recommended to use node version 10.x

Using node

$ yarn run-dev -f ping

Using Serverless

$ cp config.example.yml config.yml # and edit
$ yarn
$ sls invoke local -f ping
# OR
$ yarn dev # Then, Open http://localhost:6000

In production

$ yarn
$ yarn build
.................Wok in Progress.............