{"id":17624844,"url":"https://github.com/geovanisouza92/cycle-lambda","last_synced_at":"2025-03-30T01:42:00.278Z","repository":{"id":145443298,"uuid":"81225580","full_name":"geovanisouza92/cycle-lambda","owner":"geovanisouza92","description":"AWS Lambda function written using Cycle.js","archived":false,"fork":false,"pushed_at":"2017-02-07T22:46:09.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T03:58:54.355Z","etag":null,"topics":["cyclejs","lambda","reactive","reactive-programming"],"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/geovanisouza92.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":"2017-02-07T15:52:46.000Z","updated_at":"2017-09-24T05:40:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c346df6-2573-486d-87d1-eba7cbaff1f0","html_url":"https://github.com/geovanisouza92/cycle-lambda","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/geovanisouza92%2Fcycle-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geovanisouza92%2Fcycle-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geovanisouza92%2Fcycle-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geovanisouza92%2Fcycle-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geovanisouza92","download_url":"https://codeload.github.com/geovanisouza92/cycle-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246266255,"owners_count":20749754,"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":["cyclejs","lambda","reactive","reactive-programming"],"created_at":"2024-10-22T22:06:01.807Z","updated_at":"2025-03-30T01:42:00.258Z","avatar_url":"https://github.com/geovanisouza92.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cycle-lambda\n\nA tiny example about how to write a [Cycle.js](https://cycle.js.org/) app that runs inside a AWS Lambda function.\n\nThe idea is really simple: Use a driver to input Lambda event and context for the **main** function as a *source*, and use the *sink* to send back the result.\n\nAll the logic/behavior (and other side-effects like querying a RDS database or making an HTTP call) is handled inside **main** function with the help of other drivers. Note that the Lambda function must have the correct permissions on its role to execute such tasks.\n\n# NPM Scripts\n\n## npm test\n\nEmulates a Lambda handler invocation.\n\nIf you want to provide a sample test event, configure it inside `functions/\u003cfunction name\u003e/config.json`.\n\n## npm deploy\n\nDeploys a functions as per `functions/\u003cfunction name\u003e/config.json` configurations on the target environment.\n\nYou must provide three environment variables (could be in a `.env` file): `REGION`, `AWS_ACCESS_KEY` and `AWS_SECRET_ACCESS_KEY` with permissions to put objects on S3 and update function code on Lambda.\n\n# Helper scripts\n\n## `.scripts/emulate.js`\n\nEmulates a Lambda handler invocation. *It does not provide a context object for now.*\n\n## `.scripts/deploy.js`\n\nDeploys a function to Lambda.\n\n## `.scripts/archive.js`\n\nUsed by `.scripts/deploy.js` to create a package with function code and `node_modules` dependencies.\n\n## `.scripts/link-functions.js`\n\nUsed to link `lib/` code inside the function's folder, allowing emulation and packaging.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeovanisouza92%2Fcycle-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeovanisouza92%2Fcycle-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeovanisouza92%2Fcycle-lambda/lists"}