All Projects → jthegedus → Firebase Functions Graphql Example

jthegedus / Firebase Functions Graphql Example

Licence: other
GraphQL server running on Cloud Functions for Firebase

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Firebase Functions Graphql Example

Graphql Serverless
GraphQL (incl. a GraphiQL interface) middleware for the webfunc serverless web framework.
Stars: ✭ 124 (+15.89%)
Mutual labels:  graphql, graphql-server, serverless
React Firebase Starter
Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay
Stars: ✭ 4,366 (+3980.37%)
Mutual labels:  graphql, serverless, firebase-functions
Firebase Gcp Examples
🔥 Firebase app architectures, languages, tools & some GCP things! React w Next.js, Svelte w Sapper, Cloud Functions, Cloud Run.
Stars: ✭ 470 (+339.25%)
Mutual labels:  graphql, serverless, firebase-functions
Daptin
Daptin - Backend As A Service - GraphQL/JSON-API Headless CMS
Stars: ✭ 1,195 (+1016.82%)
Mutual labels:  graphql, graphql-server
Serverless Backend
The serverless back end for JAMstack CMS. Use this back end to deploy a custom CMS using your own front end.
Stars: ✭ 73 (-31.78%)
Mutual labels:  graphql, serverless
Integrify
🤝 Enforce referential and data integrity in Cloud Firestore using triggers
Stars: ✭ 74 (-30.84%)
Mutual labels:  serverless, firebase-functions
Graphql Serverless
Example boilerplates for GraphQL backends hosted on serverless platforms
Stars: ✭ 60 (-43.93%)
Mutual labels:  graphql, serverless
Graphql Transform Schema
Transform, filter & alias resolvers of a GraphQL schema
Stars: ✭ 84 (-21.5%)
Mutual labels:  graphql, graphql-server
Write With Me
Real-time Collaborative Markdown Editor
Stars: ✭ 81 (-24.3%)
Mutual labels:  graphql, serverless
Serverless Postgraphql
Serverless GraphQL endpoint for PostgresSQL using AWS, serverless and PostGraphQL
Stars: ✭ 105 (-1.87%)
Mutual labels:  graphql, serverless
Ariadne
Ariadne is a Python library for implementing GraphQL servers using schema-first approach.
Stars: ✭ 1,274 (+1090.65%)
Mutual labels:  graphql, graphql-server
Serverless Graphql Workshop
GraphQL and Serverless workshop
Stars: ✭ 70 (-34.58%)
Mutual labels:  graphql, serverless
Apollo Server Vercel
⚫ Production-ready Node.js GraphQL server for Vercel Serverless Functions
Stars: ✭ 69 (-35.51%)
Mutual labels:  graphql, graphql-server
Puppeteer Functions
Puppeteer Firebase Functions demo
Stars: ✭ 75 (-29.91%)
Mutual labels:  serverless, firebase-functions
Best Of Web Python
🏆 A ranked list of awesome python libraries for web development. Updated weekly.
Stars: ✭ 1,118 (+944.86%)
Mutual labels:  graphql, serverless
Comingornot
A perfect event organizer
Stars: ✭ 83 (-22.43%)
Mutual labels:  graphql, serverless
This Or That
This or that - Real-time atomic voting app built with AWS Amplify
Stars: ✭ 87 (-18.69%)
Mutual labels:  graphql, serverless
Aws Serverless Airline Booking
Airline Booking is a sample web application that provides Flight Search, Flight Payment, Flight Booking and Loyalty points including end-to-end testing, GraphQL and CI/CD. This web application was the theme of Build on Serverless Season 2 on AWS Twitch running from April 24th until end of August in 2019.
Stars: ✭ 1,290 (+1105.61%)
Mutual labels:  graphql, serverless
Graphql Log
Add logging to your GraphQL resolvers so you know what's going on in your app.
Stars: ✭ 94 (-12.15%)
Mutual labels:  graphql, graphql-server
Up
Up focuses on deploying "vanilla" HTTP servers so there's nothing new to learn, just develop with your favorite existing frameworks such as Express, Koa, Django, Golang net/http or others.
Stars: ✭ 8,439 (+7786.92%)
Mutual labels:  graphql, serverless

🚨 deprecated, new example at firebase-gcp-examples


GraphQL Server on Cloud Functions for Firebase

Host a GraphQL Server in Cloud Functions for Firebase with ES6+!

Here is the accompanying Medium Post.

This method is markedly simpler than any other GraphQL-on-FaaS method I have seen. No custom packages for GCP or struggling with API Gateway or complex setup instructions for AWS. Just use the most prominent, community drive implementation.

TLDR;

Host your GraphQL Server on Cloud Functions enabling rapid development with GraphQL on a low-cost, auto-scaling web server leveraging Firebase's sweet, sweet developer experience.

Cloud Functions can accept an Express Server object directly, so leverage the Apollo apollo-server-express pacakge to setup our GraphQL server.

The schema and resolvers are the same used in the Apollo example.

Routes

Schema: https://us-central1-<project-name>.cloudfunctions.net/api/schema

GraphiQL: https://us-central1-<project-name>.cloudfunctions.net/api/graphiql

GraphQL: https://us-central1-<project-name>.cloudfunctions.net/api/graphql?<query>

Installation

git clone https://github.com/jthegedus/firebase-functions-graphql-example
cd firebase-functions-graphql-example
yarn install

Local Development

yarn serve

This will serve the Cloud Functions locally using the Firebase emulator.

Deploy to Firebase

yarn deploy

N.B.: Replace <project-name> in the .firebaserc to connect the project to your Firebase project.

A note on Code Compatibility

Everything was tested on Ubuntu 16.04 & Windows 10 with Bash on Ubuntu on Windows. If you wish for Windows native support please submit an issue so we can work on a Windows branch. Please report any macOS errors as I do not have access to a device to test. My development environment can be found here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].