{"id":22211986,"url":"https://github.com/danielwaltz/vue-apollo-firebase-functions","last_synced_at":"2025-12-30T23:25:51.362Z","repository":{"id":110109471,"uuid":"166630835","full_name":"danielwaltz/vue-apollo-firebase-functions","owner":"danielwaltz","description":"Example project for using Firebase cloud functions with Vue and Apollo","archived":false,"fork":false,"pushed_at":"2021-09-03T01:41:33.000Z","size":333,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T05:27:50.684Z","etag":null,"topics":["apollo","cloud-functions","firebase","firebase-functions","graphql","node","serverless-functions","template-project","vue","vue-apollo","vue-router","vuejs"],"latest_commit_sha":null,"homepage":"https://vue-apollo-firebase-functions.firebaseapp.com/","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/danielwaltz.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-01-20T06:31:26.000Z","updated_at":"2021-09-03T01:41:37.000Z","dependencies_parsed_at":"2023-03-26T17:32:44.780Z","dependency_job_id":null,"html_url":"https://github.com/danielwaltz/vue-apollo-firebase-functions","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/danielwaltz%2Fvue-apollo-firebase-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwaltz%2Fvue-apollo-firebase-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwaltz%2Fvue-apollo-firebase-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwaltz%2Fvue-apollo-firebase-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielwaltz","download_url":"https://codeload.github.com/danielwaltz/vue-apollo-firebase-functions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245407777,"owners_count":20610234,"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":["apollo","cloud-functions","firebase","firebase-functions","graphql","node","serverless-functions","template-project","vue","vue-apollo","vue-router","vuejs"],"created_at":"2024-12-02T20:46:18.851Z","updated_at":"2025-12-30T23:25:51.316Z","avatar_url":"https://github.com/danielwaltz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Apollo Firebase Functions\n\nExample project using a Vue frontend to send data an Apollo GraphQL server based in a cloud function on Firebase. Check out the [demo](https://vue-apollo-firebase-functions.firebaseapp.com/)!\n\n## Local Development\n\nClone the repo and download dependencies. Dependencies will need to be downloaded in two locations; the repo root and the `functions` directory. `nvm` is used in the `functions` directory because Firebase cloud functions run on node `v8.14.0` and don't give you an option to use a later version. `npm` must also be used in the `functions` directory for most tasks.\n\n```\nyarn\ncd functions\nnpm i\n```\n\nAfter dependencies are downloaded, start the frontend server and Firebase functions emulator.\n\n```\nyarn serve\ncd functions\nnpm run serve\n```\n\nYou can then navigate to `http://localhost:8080` and changes made will be reflected on save. The emulated cloud function is located at `http://localhost:5000/vue-apollo-firebase-functions/us-central1/api/graphql` and includes a GraphQL playground. Make sure you change the url inside the playground for it to work properly!\n\n## Build \u0026 Deploy\n\nThe first step is to create a new project in [Firebase](https://firebase.google.com/). It is free to host a simple cloud function with a couple gotchas; strict rate limits and no access to the outside internet from inside the function. It's limiting but perfect for getting started.\n\nAfter your project is created run `yarn firebase login` from the repo root. After you have logged in to the Firebase cli you then need to change instances of `vue-apollo-firebase-functions` throughout the project to the id of your new project. I recommend running a find and replace.\n\nAfter the urls are updated simply run `yarn deploy` and wait for the deployment to Firebase to complete! By default it will deploy both the frontend and function in one go.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwaltz%2Fvue-apollo-firebase-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielwaltz%2Fvue-apollo-firebase-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwaltz%2Fvue-apollo-firebase-functions/lists"}