{"id":20753597,"url":"https://github.com/vharmain/nbb-serverless-example","last_synced_at":"2025-07-26T09:12:39.386Z","repository":{"id":43461460,"uuid":"445885831","full_name":"vharmain/nbb-serverless-example","owner":"vharmain","description":"Deploying and running ClojureScript code on AWS Lambda NodeJS 14.x runtime using nbb and Serverless Framwork","archived":false,"fork":false,"pushed_at":"2022-11-01T16:59:31.000Z","size":5,"stargazers_count":23,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T11:21:55.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/vharmain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-08T17:34:22.000Z","updated_at":"2024-05-20T03:09:58.000Z","dependencies_parsed_at":"2023-01-20T21:00:32.871Z","dependency_job_id":null,"html_url":"https://github.com/vharmain/nbb-serverless-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vharmain%2Fnbb-serverless-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vharmain%2Fnbb-serverless-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vharmain%2Fnbb-serverless-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vharmain%2Fnbb-serverless-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vharmain","download_url":"https://codeload.github.com/vharmain/nbb-serverless-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251344516,"owners_count":21574554,"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-11-17T09:14:16.558Z","updated_at":"2025-04-28T16:26:48.139Z","avatar_url":"https://github.com/vharmain.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nbb serverless example\n\nThis example demonstrates how to deploy and run CLJS code on AWS Lambda NodeJS 14.x runtime using [Serverless Framework](https://www.serverless.com/).\n\nWe setup a simple HTTP POST endpoint on API Gateway that proxies requests to a lambda function. `index.mjs` file works as a bootstrap that uses [nbb](https://github.com/babashka/nbb/) to load CLJS code when the lambda (cold)starts.\n\n## Prerequisities\n\n* AWS Account and API credentials configured on your system\n* Node\n\n## Setup, deployment and testing\n\n* `npm install`\n* `npx sls deploy`\n\nGrab the endpoint URL from the output and call it like this:\n\n```shell\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"x\":1,\"y\":2}' https://1xz3t07x70.execute-api.us-east-1.amazonaws.com/dev/add\n```\n\n...or\n```shell\n npx sls invoke --function add --data '{\"body\":\"{\\\"x\\\":1,\\\"y\\\":2}\"}'\n```\n\nNOTE: `npx sls invoke local` does not work due to https://github.com/serverless/serverless/issues/11308\n\n## Develop\n\nYou can edit the code locally or directly in the Lambda Console.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvharmain%2Fnbb-serverless-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvharmain%2Fnbb-serverless-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvharmain%2Fnbb-serverless-example/lists"}