{"id":22489306,"url":"https://github.com/edis/sls-multi-gateways","last_synced_at":"2025-08-02T21:32:28.069Z","repository":{"id":48073075,"uuid":"370838840","full_name":"edis/sls-multi-gateways","owner":"edis","description":"Run multiple serverless functions under one URL 🔗","archived":false,"fork":false,"pushed_at":"2021-08-09T01:07:09.000Z","size":138,"stargazers_count":5,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-02-26T19:44:20.662Z","etag":null,"topics":["api-gateway","serverless","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sls-multi-gateways","language":"TypeScript","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/edis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-25T22:03:52.000Z","updated_at":"2022-07-08T08:28:02.000Z","dependencies_parsed_at":"2022-08-12T18:00:49.969Z","dependency_job_id":null,"html_url":"https://github.com/edis/sls-multi-gateways","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edis%2Fsls-multi-gateways","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edis%2Fsls-multi-gateways/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edis%2Fsls-multi-gateways/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edis%2Fsls-multi-gateways/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edis","download_url":"https://codeload.github.com/edis/sls-multi-gateways/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228500221,"owners_count":17930020,"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":["api-gateway","serverless","typescript"],"created_at":"2024-12-06T17:19:36.080Z","updated_at":"2024-12-06T17:21:51.208Z","avatar_url":"https://github.com/edis.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# sls-multi-gateways\nsls-multi-gateways is a tool that allows you to run multiple api gateways under one domain for local development purposes. \u003cbr /\u003e\u003cbr /\u003e\n[Here is a walkthrough article on medium](https://medium.com/@edisgonuler/run-multiple-serverless-applications-d8b38ef04f37)\n\n## Installation\nsls-multi-gateways needs to be installed globally using the following command:\n```bash\nnpm install -g sls-multi-gateways\n```\n\n## Usage\nAfter installing sls-multi-gateways, cd into your project directory\n```bash\ncd [project-directory]\n```\n\nCreate a sls-multi-gateways config file\n```bash\ntouch sls-multi-gateways.yml\n```\n\nInside your sls-multi-gateways config file add the services you would like to run\n```bash\nport: [port the proxy will run on - (optional: default is 3000)]\nstage: [stage the proxy will run on - (optional: default is dev)]\nservices:\n  - srvName: [name of the service]\n    srvPath: [proxy path to the service]\n    srvSource: [path to the serverless.yml file belong to that service]\n    stripBasePath: [whether the srvPath will be passed on to the proxy]\n  - srvName: [name of the service 2]\n    srvPath: [proxy path to the service 2]\n    srvSource: [path to the serverless.yml file belong to that service]\n    stripBasePath: [whether the srvPath will be passed on to the proxy]\n```\n\n\nAll srvPaths by default are mapped to ```localhost:[port]/[srvPath]```. To remove ```srvPath``` , set  ```stripBasePath``` to ```true```.\n\u003cbr /\u003e\u003cbr /\u003e \n\nTo run sls-multi-gateways, execute the following cmd in the directory with the config file\n\n```bash\nsls-multi-gateways\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedis%2Fsls-multi-gateways","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedis%2Fsls-multi-gateways","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedis%2Fsls-multi-gateways/lists"}