{"id":22385041,"url":"https://github.com/273do/express-with-awslambda","last_synced_at":"2025-10-10T16:10:11.823Z","repository":{"id":265839373,"uuid":"862900059","full_name":"273Do/Express-with-AWSLambda","owner":"273Do","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-25T13:08:21.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T08:58:20.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/273Do.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-25T11:31:40.000Z","updated_at":"2024-09-25T13:08:25.000Z","dependencies_parsed_at":"2024-12-01T06:49:14.365Z","dependency_job_id":"e89fda0f-6009-4b63-88bd-ca3675f73d74","html_url":"https://github.com/273Do/Express-with-AWSLambda","commit_stats":null,"previous_names":["273do/express-with-awslambda"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/273Do%2FExpress-with-AWSLambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/273Do%2FExpress-with-AWSLambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/273Do%2FExpress-with-AWSLambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/273Do%2FExpress-with-AWSLambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/273Do","download_url":"https://codeload.github.com/273Do/Express-with-AWSLambda/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245728524,"owners_count":20662693,"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":[],"created_at":"2024-12-05T01:20:44.568Z","updated_at":"2025-10-10T16:10:06.790Z","avatar_url":"https://github.com/273Do.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\ntitle: 'Serverless Framework Node Express API on AWS'\ndescription: 'This template demonstrates how to develop and deploy a simple Node Express API running on AWS Lambda using the Serverless Framework.'\nlayout: Doc\nframework: v4\nplatform: AWS\nlanguage: nodeJS\npriority: 1\nauthorLink: 'https://github.com/serverless'\nauthorName: 'Serverless, Inc.'\nauthorAvatar: 'https://avatars1.githubusercontent.com/u/13742415?s=200\u0026v=4'\n--\u003e\n\n# Serverless Framework Node Express API on AWS\n\nThis template demonstrates how to develop and deploy a simple Node Express API service running on AWS Lambda using the Serverless Framework.\n\nThis template configures a single function, `api`, which is responsible for handling all incoming requests using the `httpApi` event. To learn more about `httpApi` event configuration options, please refer to [httpApi event docs](https://www.serverless.com/framework/docs/providers/aws/events/http-api/). As the event is configured in a way to accept all incoming requests, the Express.js framework is responsible for routing and handling requests internally. This implementation uses the `serverless-http` package to transform the incoming event request payloads to payloads compatible with Express.js. To learn more about `serverless-http`, please refer to the [serverless-http README](https://github.com/dougmoscrop/serverless-http).\n\n## Usage\n\n### Deployment\n\nInstall dependencies with:\n\n```\nnpm install\n```\n\nand then deploy with:\n\n```\nserverless deploy\n```\n\nAfter running deploy, you should see output similar to:\n\n```\nDeploying \"aws-node-express-api\" to stage \"dev\" (us-east-1)\n\n✔ Service deployed to stack aws-node-express-api-dev (96s)\n\nendpoint: ANY - https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com\nfunctions:\n  api: aws-node-express-api-dev-api (2.3 kB)\n```\n\n_Note_: In current form, after deployment, your API is public and can be invoked by anyone. For production deployments, you might want to configure an authorizer. For details on how to do that, refer to [`httpApi` event docs](https://www.serverless.com/framework/docs/providers/aws/events/http-api/).\n\n### Invocation\n\nAfter successful deployment, you can call the created application via HTTP:\n\n```\ncurl https://xxxxxxx.execute-api.us-east-1.amazonaws.com/\n```\n\nWhich should result in the following response:\n\n```json\n{ \"message\": \"Hello from root!\" }\n```\n\n### Local development\n\nThe easiest way to develop and test your function is to use the `dev` command:\n\n```\nserverless dev\n```\n\nThis will start a local emulator of AWS Lambda and tunnel your requests to and from AWS Lambda, allowing you to interact with your function as if it were running in the cloud.\n\nNow you can invoke the function as before, but this time the function will be executed locally. Now you can develop your function locally, invoke it, and see the results immediately without having to re-deploy.\n\nWhen you are done developing, don't forget to run `serverless deploy` to deploy the function to the cloud.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F273do%2Fexpress-with-awslambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F273do%2Fexpress-with-awslambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F273do%2Fexpress-with-awslambda/lists"}