{"id":26276442,"url":"https://github.com/h-will-h/react-apollo-firebase-starter","last_synced_at":"2025-05-06T20:22:13.579Z","repository":{"id":39507547,"uuid":"192097949","full_name":"h-will-h/react-apollo-firebase-starter","owner":"h-will-h","description":"A boilerplate (starter) for building a React + Typescript + Firebase + GraphQL + Apollo app ","archived":false,"fork":false,"pushed_at":"2023-01-09T11:43:26.000Z","size":1229,"stargazers_count":7,"open_issues_count":19,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-31T02:34:39.995Z","etag":null,"topics":["apollo","firebase","graphql","react","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/h-will-h.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}},"created_at":"2019-06-15T16:04:16.000Z","updated_at":"2023-09-18T07:44:11.000Z","dependencies_parsed_at":"2023-02-08T10:32:09.750Z","dependency_job_id":null,"html_url":"https://github.com/h-will-h/react-apollo-firebase-starter","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/h-will-h%2Freact-apollo-firebase-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-will-h%2Freact-apollo-firebase-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-will-h%2Freact-apollo-firebase-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-will-h%2Freact-apollo-firebase-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h-will-h","download_url":"https://codeload.github.com/h-will-h/react-apollo-firebase-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252761769,"owners_count":21800206,"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","firebase","graphql","react","typescript"],"created_at":"2025-03-14T11:18:05.454Z","updated_at":"2025-05-06T20:22:13.558Z","avatar_url":"https://github.com/h-will-h.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React + Typescript + Firebase + GraphQL + Apollo Starter\n\n## Why\n\nI've been building a few projects in this stack recently. It's a great stack to start something on, but there is a bunch of boilerplate and setup that has to happen each time. Hopefully this makes it easier to get started.\n\nI've stubbed out pretty much everything you'd need to get the basics working, including auth.\n\n## What's here\n\n- Apollo GraphQL server as a Firebase function.\n- React app w/ Apollo Client.\n- Auth that works with Firebase from client to server.\n\n## What's not here\n\n- Tests :(.\n- A tutorial.\n\n## Set up\n\nWe'll assume you have [node](https://nodejs.org/) and [yarn](https://yarnpkg.com/) installed.\n\n1. Make a new project in firebase: https://console.firebase.google.com/.\n1. You'll need to turn on email/password sign in and realtime database to get this working.\n1. Follow [these instructions](https://firebase.google.com/docs/admin/setup#add_firebase_to_your_app) to set up a service account for admin. You just need to [make a new service account](https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk) and `export GOOGLE_APPLICATION_CREDENTIALS=\"/path/to/file.json\"`.\n1. `npm install -g firebase`\n1. `firebase login`\n1. `firebase init` Choose `functions`, `typescript`, don't overwrite any files (just keep hitting enter).\n1. `cd functions/ \u0026\u0026 npm run deploy` to deploy the server or `npm run serve` to run it locally.\n1. Change `REACT_APP_FIREBASE_URL` in `.env` to point to your firebase function. For local dev, make a `.env.local` file and change `REACT_APP_FIREBASE_URL` to your local URL.\n1. `cd ../ \u0026\u0026 yarn start`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh-will-h%2Freact-apollo-firebase-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh-will-h%2Freact-apollo-firebase-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh-will-h%2Freact-apollo-firebase-starter/lists"}