{"id":24514719,"url":"https://github.com/learningbyexample/kotlinserverless","last_synced_at":"2025-10-14T12:04:04.313Z","repository":{"id":150632352,"uuid":"98052717","full_name":"LearningByExample/KotlinServerless","owner":"LearningByExample","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-22T19:20:34.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T10:30:07.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/LearningByExample.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-22T19:13:32.000Z","updated_at":"2017-11-09T16:43:19.000Z","dependencies_parsed_at":"2023-05-26T17:45:10.828Z","dependency_job_id":null,"html_url":"https://github.com/LearningByExample/KotlinServerless","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LearningByExample/KotlinServerless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LearningByExample%2FKotlinServerless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LearningByExample%2FKotlinServerless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LearningByExample%2FKotlinServerless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LearningByExample%2FKotlinServerless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LearningByExample","download_url":"https://codeload.github.com/LearningByExample/KotlinServerless/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LearningByExample%2FKotlinServerless/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019222,"owners_count":26086574,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-22T01:14:16.483Z","updated_at":"2025-10-14T12:04:04.308Z","avatar_url":"https://github.com/LearningByExample.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Kotlin Serverless\nThis is a small example illustrating [this blog post](https://www.juan-medina.com/2017/07/21/kotlin-serverless/) \nabout doing Serverless functions in Kotlin.\n\nFirst I recommend to read this [article](https://martinfowler.com/articles/serverless.html) by [Mike Roberts](https://twitter.com/mikebroberts) from Martin Fowler website to get a bit more understanding on what is a Serverless architecture.\n\nThem we should take a loot to the [System Overview](https://github.com/apache/incubator-openwhisk/blob/master/docs/about.md) of [Apache Openwhisk](http://openwhisk.incubator.apache.org/).\n \nYou need to have OpenWhisk up and running, them fist build this function:\n\n```shell\n$ mvnw package\n```\n\nNow you could add an action to OpenWhisk with:\n\n```shell\n$ cd target\n$ wsk action create Fibonacci KotlinServerless-1.0-SNAPSHOT-jar-with-dependencies.jar --main \\\n  org.learning.by.example.serverless.kotlin.FibonacciKt\n```\n\nTo test the new action just run:\n\n```shell\n$ wsk action invoke --result Fibonacci --param numbers 5 \n```\n\nThis will output something like:\n\n```json\n{\n  \"result\": [\n      1,\n      1,\n      2,\n      3,\n      5\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearningbyexample%2Fkotlinserverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flearningbyexample%2Fkotlinserverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearningbyexample%2Fkotlinserverless/lists"}