{"id":23338422,"url":"https://github.com/abhirockzz/fn-echo-app","last_synced_at":"2025-07-27T19:40:26.810Z","repository":{"id":79124944,"uuid":"184559564","full_name":"abhirockzz/fn-echo-app","owner":"abhirockzz","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-02T12:37:07.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T16:33:57.783Z","etag":null,"topics":["faas","oci-events","orafunc-events","serverless"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/abhirockzz.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":"2019-05-02T10:10:46.000Z","updated_at":"2019-05-03T18:04:00.000Z","dependencies_parsed_at":"2023-03-07T16:30:39.579Z","dependency_job_id":null,"html_url":"https://github.com/abhirockzz/fn-echo-app","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/abhirockzz%2Ffn-echo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-echo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-echo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-echo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhirockzz","download_url":"https://codeload.github.com/abhirockzz/fn-echo-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247666003,"owners_count":20975785,"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":["faas","oci-events","orafunc-events","serverless"],"created_at":"2024-12-21T03:13:53.526Z","updated_at":"2025-04-07T13:43:51.919Z","avatar_url":"https://github.com/abhirockzz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Echo function\n\nThis is a very simple 'echo' function which logs the recieved event payload and returns the same. You can use it to test Functions integration with OCI Events service.\n\n## Pre-requisites\n\nBefore you begin, please ensure that you have configure the Oracle Functions development environment. \n\n### Fn CLI\n\nDownload (or update) the [Fn CLI](https://github.com/fnproject/cli)\n\n`curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh`\n\n### Switch to correct context\n\n- `fn use context \u003cyour context name\u003e`\n- Check using `fn ls apps`\n\n### Syslog service\n\nOracle Functions allows you to push the function logs to a syslog endpoint. Please use [the following as an example](https://github.com/abhirockzz/fn-syslog-example) of how to configure the application to use [Papertrail](https://papertrailapp.com) as the syslog endpoint.\n\nOnce you have completed the pre-requisites, clone this repository - `git clone https://github.com/abhirockzz/fn-echo-app` and change to the correct directory - `cd fn-echo-app`\n\n## Create application\n\nYou can use the console or CLI to create the app\n\n`fn create app fn-echo-app --annotation oracle.com/oci/subnetIds='SUBNET_OCIDs' --syslog-url \u003cSYSLOG_ENDPOINT\u003e`\n\ne.g.\n\n    fn create app fn-echo-app --annotation oracle.com/oci/subnetIds='[\"ocid1.subnet.oc1.phx.aaaaaaaaghmsma7mpqhqdhbgnby25u2zo4wqlrrcskvu7jg56dryxtfoobar\"]' --syslog-url tcp://logz7.foobar.com:42424\n\n## Deploy the application\n\n`fn -v deploy --app fn-echo-app` \n\n### Check deployed application\n\n`fn inspect app fn-echo-app`\n\n## Test\n\nThe `sample-event-payload.json` file (included in the repository) represents a sample payload sent by the OCI Events service when an object is created in a OCI Storage Bucket.\n\nYou can test the function by piping the contents of that file\n\n`cat sample-event-payload.json | fn invoke fn-echo-app echo-event`\n\nYou should see the JSON payload in the reponse and the same should be evident in the function logs (Papertrail) as well.\n\n## Next steps\n\nYour next logical step would be to configure OCI Events service to trigger this function based on an event e.g. object created in an OCI Object Storage bucket and then check the function logs to see the payload being sent by the service.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Ffn-echo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhirockzz%2Ffn-echo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Ffn-echo-app/lists"}