{"id":17340867,"url":"https://github.com/kenfdev/openfaas-everywhere","last_synced_at":"2025-10-04T18:52:04.292Z","repository":{"id":88345793,"uuid":"161501862","full_name":"kenfdev/openfaas-everywhere","owner":"kenfdev","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T05:33:29.000Z","size":1719,"stargazers_count":15,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-29T14:01:01.138Z","etag":null,"topics":[],"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/kenfdev.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,"zenodo":null}},"created_at":"2018-12-12T14:44:06.000Z","updated_at":"2022-11-26T15:45:39.000Z","dependencies_parsed_at":"2023-12-15T06:47:51.157Z","dependency_job_id":null,"html_url":"https://github.com/kenfdev/openfaas-everywhere","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kenfdev/openfaas-everywhere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fopenfaas-everywhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fopenfaas-everywhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fopenfaas-everywhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fopenfaas-everywhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenfdev","download_url":"https://codeload.github.com/kenfdev/openfaas-everywhere/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fopenfaas-everywhere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278358479,"owners_count":25973949,"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-04T02:00:05.491Z","response_time":63,"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":"2024-10-15T15:46:51.930Z","updated_at":"2025-10-04T18:52:04.244Z","avatar_url":"https://github.com/kenfdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenFaaS Everywhere\n\nThis repository tries to show integration with cutting edge technologies such as:\n\n* Kubernetes for containers\n* OpenFaaS for functions(every function uses a different language!) and microservices\n* Nuxt.js for an SPA with Server Side Rendering\n* GraphQL for APIs\n* Apollo to communicate with GraphQL\n\n## Overview\n\n![](./assets/img/openfaas_everywhere.jpg)\n\n## Demo\n\n![](./assets/img/openfaas_everywhere.gif)\n\n## Try it yourself\n\n### Requirements\n\n* A Kubernetes cluster with a `nginx` ingress controller\n* [OpenFaaS deployed](https://docs.openfaas.com/deployment/kubernetes/)\n* The [OpenFaaS CLI](https://docs.openfaas.com/cli/install/) installed\n* A GitHub Personal API Token\n\n\n\n### Deploy Ingress\n\nDeploy the Ingress for the nuxt app. (The default is set to `nuxt.openfaas.local` which will point to the `faas-nuxt-graphql` microservice)\n\n```bash\nkubectl apply -f ./yaml\n```\n\n\n\n### Set your `/etc/hosts`\n\nSince domains differ from one to another, this instruction sets `/etc/hosts` to fake the Domain resolving. Open your `/etc/hosts` and set it like the following:\n\n```\n\u003cYOUR K8S CLUSTER IP\u003e gateway.openfaas.local\n\u003cYOUR K8S CLUSTER IP\u003e nuxt.openfaas.local\n```\n\n\n\n### Prepare the GitHub token\n\nSince the requests to the GitHub API require a GitHub Personal Token, make sure you've already created one. ( `public_repo` is the only permission required)\n\n#### `.env.yml` file\n\n```bash\n# create .env.yml\ntouch .env.yml\n```\n\nPaste your GitHub API token inside the file like this:\n\n```yml\nenvironment:\n  TOKEN: \u003cPUT YOUR GITHUB API TOKEN HERE\u003e\n```\n\n\n\n### Deploy the functions\n\nIf you're using the images created by the author ( `kenfdev` ), just hit:\n\n```bash\nfaas-cli deploy\n```\n\nAnd the functions should be deployed.\n\n\n\nIf you are building them from source, be sure to change the username for docker hub (or wherever your registry is) inside the `stack.yml`.\n\n```yml\n...\nfunctions:\n  faas-nuxt-graphql:\n    lang: dockerfile\n    handler: ./faas-nuxt-graphql\n    image: kenfdev/faas-nuxt-graphql:latest # \u003c- change the username!\n    environment:\n      GATEWAY_URL: http://gateway.openfaas:8080\n    environment_file:\n      - .env.yml\n...\n```\n\nand then hit:\n\n```bash\nfaas-cli up\n```\n\n\n\n## Todo\n\n- [ ] Create `faas-java` for a Java function example\n- [ ] Use secrets for the API token injection\n- [ ] A better way to inject `API_BASE_URL` in `faas-nuxt-graphql/package.json`\n- [ ] Think about a seamless way to develop the nuxt app with `npm run dev`\n\n\n\n**Contributions are welcome!**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenfdev%2Fopenfaas-everywhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenfdev%2Fopenfaas-everywhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenfdev%2Fopenfaas-everywhere/lists"}