{"id":16266115,"url":"https://github.com/jdawkinsdew/expressjs-lambda-serverless-boilerplate","last_synced_at":"2026-04-16T19:48:50.744Z","repository":{"id":175886315,"uuid":"654645320","full_name":"jdawkinsdew/expressjs-lambda-serverless-boilerplate","owner":"jdawkinsdew","description":"Build serverless Express.js applications with AWS Lambda and Serverless Framework. Includes sample endpoints and authentication middleware for quick setup. #ExpressJS #AWSLambda #Serverless","archived":false,"fork":false,"pushed_at":"2023-07-28T05:48:57.000Z","size":145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T10:57:12.418Z","etag":null,"topics":["aws-lambda-node","expressjs","expressjs-serverless-template","serverless","serverless-boilerplate","stripe-webhooks"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jdawkinsdew.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":"2023-06-16T15:35:07.000Z","updated_at":"2023-07-27T15:30:48.000Z","dependencies_parsed_at":"2024-11-04T23:41:23.254Z","dependency_job_id":"9fc5a9d6-1513-4786-8f5e-8f63110523fd","html_url":"https://github.com/jdawkinsdew/expressjs-lambda-serverless-boilerplate","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.375,"last_synced_commit":"3f877c4d1751d2c3ab6f171e184bf1f3391a20ee"},"previous_names":["jdawkinsdew/nodejs-lambda-serverless-boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdawkinsdew%2Fexpressjs-lambda-serverless-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdawkinsdew%2Fexpressjs-lambda-serverless-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdawkinsdew%2Fexpressjs-lambda-serverless-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdawkinsdew%2Fexpressjs-lambda-serverless-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdawkinsdew","download_url":"https://codeload.github.com/jdawkinsdew/expressjs-lambda-serverless-boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247864925,"owners_count":21009187,"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":["aws-lambda-node","expressjs","expressjs-serverless-template","serverless","serverless-boilerplate","stripe-webhooks"],"created_at":"2024-10-10T17:21:54.567Z","updated_at":"2026-04-16T19:48:45.687Z","avatar_url":"https://github.com/jdawkinsdew.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExpressJS Lambda Serverless Boilerplate\n\nA boilerplate project for building Express.js applications using Express, AWS Lambda, and Serverless framework. It provides a foundation to quickly set up a serverless architecture with sample endpoints, making it easier to get started with serverless development.\n\n## Features\n\n- Express.js for handling HTTP requests and routing.\n- AWS Lambda for serverless computing.\n- Serverless Framework for deploying and managing AWS Lambda functions.\n- Sample endpoints with authentication middleware for quick testing and understanding.\n- Environment variable support for different stages (local, test, dev, stage, prod).\n\n## Sample Routes\n\n### Route: `GET /healthz`\n\nThis route is a health check endpoint for the application. It can be used to verify if the application is running and healthy. When a GET request is made to this path, the server will respond with a status code of 200 OK, indicating that the application is healthy.\n\n### Route: `GET /sample`\n\nThis route is a regular Express request and response handler. It can be used for testing basic endpoint functionality. When a GET request is made to this path, the 'sampleHandler' function will be executed.\n\n### Route: `GET /sample/event`\n\nThis route is intended to handle AWS Lambda requests with event and context objects. It will execute the 'sampleEventHandler' function when a GET request is made to this path. Note that the 'sampleEventHandler' function expects to receive AWS Lambda event and context objects.\n\n### Route: `GET /sample/auth`\n\nThis route is for handling authenticated requests using the 'requireAuthentication' middleware. The 'requireAuthentication' middleware will be executed before 'sampleAuthHandler' to check if the request is authenticated. If the request is authenticated, it will proceed to execute 'sampleAuthHandler'; otherwise, it will stop and return an unauthorized response.\n\n### Route: `GET /sample/lambda`\n\nThis route is used to invoke a Lambda function. The 'sampleLambdaHandler' function is executed when a GET request is made to the '/lambda' path of the server. Note: The 'sampleLambdaHandler' function is expected to handle the logic to invoke the desired Lambda function.\n\n### Route: `POST /webhook`\n\nThis route is used to handle Stripe webhooks. It expects incoming POST requests with raw JSON data, which is required for signature validation. When a Stripe webhook event is received at this path, the 'webhook' handler function will be executed to process the webhook event.\n\n## How to Run Locally\n\n1. Clone the repository:\n\n```\ngit clone https://github.com/jdawkinsdew/expressjs-lambda-serverless-boilerplate.git\ncd expressjs-lambda-serverless-boilerplate\n```\n\n2. Install dependencies:\n\n```\nnpm install\n```\n\n3. Set up environment:\n\n```\ncp .env.example .env\n```\n\nUpdate the `.env` file with your API keys or other environment variables as needed.\n\n4. Start the server locally:\n\n```\nnpm run dev\n```\n\nThe server will be running on http://localhost:4000. You can access the sample routes locally using this address.\n\n## How to Deploy\n\nThis project uses the Serverless Framework for deploying the AWS Lambda functions. Ensure you have the AWS credentials set up on your local environment to deploy the Lambda functions.\n\n1. Deploy to a specific stage (e.g., test, dev, stage, prod):\n\n```\nnpm run deploy:\u003cstage\u003e\n```\n\nReplace `\u003cstage\u003e` with the desired stage name, for example:\n\n```\nnpm run deploy:dev\n```\n\nThis will deploy the Lambda functions to the specified stage in your AWS account.\n\n## Issues\n\nIf you find any issues or have any suggestions for improvements, please [open an issue](https://github.com/jdawkinsdew/expressjs-lambda-serverless-boilerplate/issues). We welcome contributions from the community!\n\n## Authors\n\n- [Gitpiece](https://github.com/jdawkinsdew)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdawkinsdew%2Fexpressjs-lambda-serverless-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdawkinsdew%2Fexpressjs-lambda-serverless-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdawkinsdew%2Fexpressjs-lambda-serverless-boilerplate/lists"}