{"id":21827567,"url":"https://github.com/dieproduktmacher/serverless-local-dev-server","last_synced_at":"2025-04-14T05:43:05.140Z","repository":{"id":47598849,"uuid":"95763421","full_name":"DieProduktMacher/serverless-local-dev-server","owner":"DieProduktMacher","description":"A simple Serverless 1.x plugin that speeds up development of Alexa Skills, Chatbots and APIs.","archived":false,"fork":false,"pushed_at":"2021-08-22T17:53:39.000Z","size":99,"stargazers_count":29,"open_issues_count":6,"forks_count":7,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-04-12T16:59:39.501Z","etag":null,"topics":["alexa","alexa-skill","aws-lambda","development","facebook-messenger-bot","http","http-endpoint","local","serverless-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DieProduktMacher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-29T09:48:55.000Z","updated_at":"2023-11-21T16:57:00.000Z","dependencies_parsed_at":"2022-09-10T13:41:38.167Z","dependency_job_id":null,"html_url":"https://github.com/DieProduktMacher/serverless-local-dev-server","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DieProduktMacher%2Fserverless-local-dev-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DieProduktMacher%2Fserverless-local-dev-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DieProduktMacher%2Fserverless-local-dev-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DieProduktMacher%2Fserverless-local-dev-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DieProduktMacher","download_url":"https://codeload.github.com/DieProduktMacher/serverless-local-dev-server/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830420,"owners_count":21168272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alexa","alexa-skill","aws-lambda","development","facebook-messenger-bot","http","http-endpoint","local","serverless-plugin"],"created_at":"2024-11-27T18:13:32.409Z","updated_at":"2025-04-14T05:43:05.109Z","avatar_url":"https://github.com/DieProduktMacher.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Serverless Local Dev Server Plugin (Beta)\n=======\n\n[![Build Status](https://travis-ci.org/DieProduktMacher/serverless-local-dev-server.svg?branch=develop)](https://travis-ci.org/DieProduktMacher/serverless-local-dev-server)\n\nThis plugin exposes Alexa-Skill and HTTP events as local HTTP endpoints, removing the need to deploy every code change to AWS Lambda. You can connect these endpoints to Alexa, Facebook Messenger or other services via forwardhq, ngrok or any other forwarding service.\n\nSupported features:\n\n* Expose `alexa-skill` and `http` events as local HTTP endpoints\n* Environment variables\n* Basic HTTP integration\n* Auto reload via nodemon (see *How To*)\n\nThis package requires node \u003e= 6.0\n\n\n# How To\n\n### 1. Install the plugin\n\n```sh\nnpm install serverless-local-dev-server --save-dev\n```\n\n### 2. Add the plugin to your serverless configuration file\n\n*serverless.yml* configuration example:\n\n```yaml\nprovider:\n  name: aws\n  runtime: nodejs6.10\n\nfunctions:\n  hello:\n    handler: handler.hello\n    events:\n      - alexaSkill\n      - http: GET /hello\n\n# Add serverless-local-dev-server to your plugins:\nplugins:\n  - serverless-local-dev-server\n\n# if needed add folder for serving static files if necessary (relative to service path)\ncustom:\n  localDevStaticFolder: path/to/static/files\n```\n\n\n\n### 3. Start the server\n\n```sh\nserverless local-dev-server\n```\n\nOn default the server listens on port 5005. You can specify another one with the *--port* argument:\n\n```sh\nserverless local-dev-server --port 5000\n```\n\nTo automatically restart the server when files change, you may use nodemon:\n\n```sh\nnodemon --exec \"serverless local-dev-server\" -e \"js yml json\"\n```\n\nTo see responses returned from Lambda and stack traces, prepend SLS_DEBUG=*\n\n```sh\nSLS_DEBUG=* serverless local-http-server\n```\n\n### 4. For Alexa Skills\n\n#### 4.1 Share localhost with the internet\n\nFor example with forwardhq:\n\n```sh\nforward 5005\n```\n\n#### 4.2 Configure AWS to use your HTTPS endpoint\n\nIn the Configuration pane, select HTTPS as service endpoint type and specify the forwarded endpoint URL.\n\nAs method for SSL Certificate validation select *My development endpoint is a sub-domain of a domain that has a wildcard certificate from a certificate authority*.\n\n\n# License \u0026 Credits\n\nLicensed under the MIT license.\n\nCreated and maintained by [DieProduktMacher](http://www.dieproduktmacher.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieproduktmacher%2Fserverless-local-dev-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdieproduktmacher%2Fserverless-local-dev-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieproduktmacher%2Fserverless-local-dev-server/lists"}