{"id":43235480,"url":"https://github.com/batjko/serverless-aws-starter","last_synced_at":"2026-02-01T10:38:01.511Z","repository":{"id":22128554,"uuid":"95312966","full_name":"batjko/serverless-aws-starter","owner":"batjko","description":"A quick example of a Lambda function setup on AWS, using the serverless framework.","archived":false,"fork":false,"pushed_at":"2022-06-26T07:10:28.000Z","size":22,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T07:08:48.238Z","etag":null,"topics":["aws-lambda","babel","chuck-norris-jokes","es6","nodejs","serverless","webpack2"],"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/batjko.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}},"created_at":"2017-06-24T17:37:21.000Z","updated_at":"2024-04-14T07:08:48.238Z","dependencies_parsed_at":"2022-07-25T09:02:01.723Z","dependency_job_id":null,"html_url":"https://github.com/batjko/serverless-aws-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/batjko/serverless-aws-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batjko%2Fserverless-aws-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batjko%2Fserverless-aws-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batjko%2Fserverless-aws-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batjko%2Fserverless-aws-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batjko","download_url":"https://codeload.github.com/batjko/serverless-aws-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batjko%2Fserverless-aws-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28976334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T09:57:52.632Z","status":"ssl_error","status_checked_at":"2026-02-01T09:57:49.143Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","babel","chuck-norris-jokes","es6","nodejs","serverless","webpack2"],"created_at":"2026-02-01T10:38:01.453Z","updated_at":"2026-02-01T10:38:01.506Z","avatar_url":"https://github.com/batjko.png","language":"JavaScript","readme":"# Serverless Example w/ Webpack\n\nSimple starter project setting up a single `/healthCheck` API endpoint that is resolved by a small but incredibly important Lambda function,\nwhich returns a status 200 and an object with a random Chuck Norris fact.\n\n## Installation / Setup\n\n1. Get an AWS account (I recommend the [Free Tier](https://aws.amazon.com/free/))\n2. Set up a [new admin user](https://serverless.com/framework/docs/providers/aws/guide/credentials#creating-aws-access-keys), to get an API key and a secret.\n3. Install the [serverless CLI](https://serverless.com/framework/docs/providers/aws/guide/installation/)\n4. [Configure it to use the admin user](https://serverless.com/framework/docs/providers/aws/guide/credentials#setup-with-serverless-config-credentials-command).\n5. Clone this repo, cd into it and `npm i` to install the dependencies\n6. [Deploy](https://serverless.com/framework/docs/providers/aws/guide/deploying/) the thing as-is, typing `serverless deploy`.\n\n## Testing the Lambda function\n\nIf the deployment was successful, you will see a URL. Something like:\n\n```yaml\nendpoints:\n  GET - https://[blabla].execute-api.[aws-region].amazonaws.com/dev/healthCheck\n```\n\nYou can test that url in your browser or Postman, with curl or what have you.\nThe response, if all went well, should look like this:\n\n```json\n{\n  \"wisdom\": \"Chuck Norris once ate a whole cake before his friends could tell him there was a stripper in it.\"\n}\n```\n\nIf you see any errors, you most likely haven't set up your admin user correctly. Read the links back at steps 2 and 4.\n\n## Developing\n\nThanks to the webpack and babel config included, you can write proper ES.next code, including es6 modules, as you can see in `handler.js`.\n\nRead the official [serverless framework docs](https://serverless.com/framework/docs/providers/aws/guide/serverless.yml) about how to use the `serverless.yml` file to set up your configuration and additional functions, including more REST endpoints (API Gateway) and resources like DynamoDB tables or S3 buckets etc.\n\nEnjoy.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatjko%2Fserverless-aws-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatjko%2Fserverless-aws-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatjko%2Fserverless-aws-starter/lists"}