{"id":22508699,"url":"https://github.com/mcred/lambda-http-example","last_synced_at":"2025-03-28T00:19:26.739Z","repository":{"id":220698032,"uuid":"752114039","full_name":"mcred/lambda-http-example","owner":"mcred","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-22T23:12:14.000Z","size":31,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T02:16:21.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/mcred.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-02-03T04:13:15.000Z","updated_at":"2024-02-04T17:19:09.000Z","dependencies_parsed_at":"2024-02-04T19:02:51.893Z","dependency_job_id":"a4de7bff-4f2e-40da-97e6-fdd688561650","html_url":"https://github.com/mcred/lambda-http-example","commit_stats":null,"previous_names":["mcred/lambda-http-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcred%2Flambda-http-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcred%2Flambda-http-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcred%2Flambda-http-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcred%2Flambda-http-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcred","download_url":"https://codeload.github.com/mcred/lambda-http-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944280,"owners_count":20697987,"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-07T01:24:43.005Z","updated_at":"2025-03-28T00:19:26.722Z","avatar_url":"https://github.com/mcred.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lambda HTTP Router Example\n\nThis is a simple example to test the performance of a simple HTTP router using AWS Lambda.\n\n## Requirements\n* [go](https://golang.org/)\n* [docker](https://www.docker.com/)\n* [docker-compose](https://docs.docker.com/compose/install/)\n* [awslocal-cli](https://github.com/localstack/awscli-local)\n* [tflocal-cli](https://github.com/localstack/terraform-local)\n\n## Running the example\n1. Set LOCALSTACK_API_KEY to the env\n```bash\necho LOCALSTACK_API_KEY=xxxxxxx \u003e\u003e .env\n``` \n2. Start the stack\n```bash\nmake start\n```\n3. Running the example for the first time\n```bash\nmake init\nmake apply\n```\n4. Refreshing the code after the first time\n```bash\nmake refresh\n```\n5. Destroying the example\n```bash\nmake destroy\n```\n6. Stopping the stack\n```bash\nmake stop\n``` \n\n## Testing the router\nThe output from the `make apply` command will show the URL of the API Gateway. Export this value to the `API_URL` environment variable. Then use `curl` to test the router.\n\n```bash\nexport API_URL=http://{API_ID}.execute-api.localhost.localstack.cloud:4566\ncurl -X GET $API_URL\ncurl -X GET $API_URL/users\ncurl -X GET $API_URL/users/1\ncurl -X DELETE $API_URL/users/1\n```  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcred%2Flambda-http-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcred%2Flambda-http-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcred%2Flambda-http-example/lists"}