functions-samples

Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase (by firebase)

Functions-samples Alternatives

Similar projects and alternatives to functions-samples

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better functions-samples alternative or higher similarity.

functions-samples reviews and mentions

Posts with mentions or reviews of functions-samples. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-09.
  • In One Minute : Firebase
    3 projects | dev.to | 9 Nov 2022
    Cloud Functions for Firebase
  • What are Firebase Extensions? How can they speed up your app development?
    3 projects | dev.to | 7 Nov 2022
    Cloud Functions are a serverless solution that allows you to run backend code in response to HTTPS requests or even more ⚡ powerfully, in response to events triggered by other Firebase products.
  • I made a website that puts your face on your pet, using Cloud Vision and ML. The results are absurd as they are ridiculous
    4 projects | reddit.com/r/webdev | 22 Oct 2022
    Have a go at petswitch.com if you wish... I made the original Petswitch almost ten years ago, and it's had mild success since then, including CNET writing an article about it and it receiving the prestigious honour of 'most useless website' in week 41 of 2018, as determined by theuselesswebindex.com. Aside from the obvious question of why I even made this, it was getting pretty creaky – I originally built it with PHP and ImageMagick, with the facial features being manually selected via jQuery UI. So I decided to rebuild the whole thing with a full face-to-pet ML pipeline, on static hosting. To get the human face features, the app renders the upload to a temporary img element. This is a handy way to orient the image correctly via the browser, and saves having to deal with EXIF data. It's then resized, rendered to a canvas element, converted to a base64 string, then sent via fetch to Google's Cloud Vision API, which returns landmark coordinates of the face. I use these coordinates to correct any tilt on the face, mask the eyes and mouth via a mask image, then store each masked element as an additional canvas. Detecting pet faces was trickier. Google, Amazon and Microsoft all offer object detection APIs via transfer learning, and the approach is largely the same: you supply a series of images with bounding boxes around the objects you want to detect, either added via a web interface or uploaded via their API. You train a model online from these supplied images, then the service will return the estimated coordinates of any detected objects in an uploaded image. I found a dataset of both cats and dogs that had been labelled with landmarks on their faces, then wrote a script to convert the landmarks into bounding boxes around their eyes and nose, the dimensions based on a simple formula around the distance between the eyes in each image. All in all it's been trained on about 17,000 images of cats and dogs, and the accuracy seems to be pretty good. I was pleased to discover it actually works pretty well on other pets too. I've also added some friendly pets to the Petswitch family for those that don't have a pet on hand. I decided not to use a framework for this, it's written from scratch using a series of ES6 modules – although I did use Konva to handle the manual selection of facial features if the API can't detect a face. I used ParcelJS as my task runner, and my detection APIs are hosted on Firebase Cloud Functions. Let me know if you have any questions, although I can offer no good explanation for why I created this monstrosity...
  • How do I allow my express REST server to handle multiple concurrent requests (200-500) at the same time?
    2 projects | reddit.com/r/node | 12 Oct 2022
    I would also consider using a serverless entry point for hook ingestion (eg Firebase Functions). That would make the hook and queue process very fast and light. It would auto scale and leave your app infrastructure largely untouched
  • Sending Emails with Firebase
    2 projects | dev.to | 4 Oct 2022
    Cloud Functions allow you to access Firebase events directly in your application. This way, you can easily integrate with the Firebase platform and accomplish a wide range of tasks.
  • Google Pay with Firebase extension and Adyen
    5 projects | dev.to | 9 Aug 2022
    Cloud Firestore is a NoSQL database part of the Firebase platform: it is designed to support complex JSON-based data structure, advanced querying and multiple languages (NodeJS, Python and Java SDKs). Firestore really stands out when used together with Cloud Functions that allow executing server-side code in response to events like changes in the database or other types of notifications.
  • Build a React App with Firebase Serverless Functions
    4 projects | dev.to | 28 Jun 2022
    import React, { useState } from "react"; import { useOktaAuth } from "@okta/okta-react"; import { initializeApp } from "firebase/app"; import { getAuth, signInWithCustomToken, signOut } from "firebase/auth"; import { getFunctions, httpsCallable, connectFunctionsEmulator, } from "firebase/functions"; function Home() { const [reportCardData, setReportCardData] = useState(); const [selectedSemester, setSelectedSemester] = useState("Spring 2022"); const { oktaAuth, authState } = useOktaAuth(); const login = async () => oktaAuth.signInWithRedirect(); const logout = async () => { signOut(auth); oktaAuth.signOut("/"); }; const { REACT_APP_FIREBASE_APIKEY, REACT_APP_FIREBASE_AUTHDOMAIN, REACT_APP_FIREBASE_PROJECTID, REACT_APP_FIREBASE_STORAGEBUCKET, REACT_APP_FIREBASE_MESSAGINGSENDERID, REACT_APP_FIREBASE_APPID, REACT_APP_ENV, } = process.env; const firebaseConfig = { apiKey: REACT_APP_FIREBASE_APIKEY, authDomain: REACT_APP_FIREBASE_AUTHDOMAIN, projectId: REACT_APP_FIREBASE_PROJECTID, storageBucket: REACT_APP_FIREBASE_STORAGEBUCKET, messagingSenderId: REACT_APP_FIREBASE_MESSAGINGSENDERID, appId: REACT_APP_FIREBASE_APPID, }; const app = initializeApp(firebaseConfig); const functions = getFunctions(app); const auth = getAuth(); if (REACT_APP_ENV === "development") { connectFunctionsEmulator(functions, "localhost", 5001); } const getGrades = async () => { const getGradesCall = httpsCallable(functions, "getGrades"); const resp = await getGradesCall({ name: selectedSemester.split(" ")[0], year: selectedSemester.split(" ")[1], }); setReportCardData(resp.data); }; const exchangeOktaTokenForFirebaseToken = async () => { const exchangeToken = httpsCallable( functions, "exchangeOktaTokenForFirebaseToken" ); const resp = await exchangeToken({ accessToken: authState.accessToken.accessToken }); await signInWithCustomToken(auth, resp.data.firebaseToken); }; if (authState?.isAuthenticated) { exchangeOktaTokenForFirebaseToken(); } return (
    • {auth?.currentUser && ( Logout button> )} {!auth?.currentUser && ( Login button> )} li> ul> nav> {!auth?.currentUser && (

      In order to use this application you must be logged into your Okta account p>

      Login button> p> div> )} {auth?.currentUser && (

      Please select a semester to get your report card h1>
      { setSelectedSemester(e.target.value); }} > Fall 2021option> Spring 2021option> Fall 2022option> Spring 2022option> select> div>
      Get Grades button> div> div> {reportCardData && ( <>

      Name: b> {reportCardData.name} p>

      School: b> {reportCardData.school} p>

      Semester: b> {reportCardData.semester} -{" "} {reportCardData.year} p> Course th> Score th> Letter Grade th> tr> thead> {reportCardData.grades.map((grade, i) => { return ( {grade.course}td> {grade.score}td> {grade.letterGrade}td> tr> ); })} tbody> table> > )} div> )}

      A Small demo using Oktaa> to Secure an{" "} Firebase hosted application{" "} a>{" "} with a serverless{" "} functiona> p>

      By Nik Fishera> p> footer> main> div> ); } export default Home;

  • Decifer — generate transcripts with ease
    5 projects | dev.to | 2 Apr 2022
    Firebase Cloud Functions lets you run backend code in a severless architecture.
  • Over the last two weeks, I created a site that allows you to create "Wordle leagues". I'm not a pro by any means, but I wanted to share some thoughts on how I was able to spin it up quickly. Hope it helps and shows that it doesn't have to be crazy hard to get an idea up and working!
    3 projects | reddit.com/r/reactjs | 22 Mar 2022
    I'm a huge fan of Firebase functions for quick projects. It allows you to build a basic backend pretty quickly and easily, which is great if you are more comfortable in the frontend or just working in React and need some simple backend functionality.
  • Any Easy to use self hosted cloud function service ?
    3 projects | reddit.com/r/serverless | 10 Jan 2022
    Functions Framework: Both Google Cloud Functions and Cloud Functions for Firebase users can opt to use the Google Cloud open source project known as the Functions Framework to run their functions locally, on their own servers, or deployed to the cloud if desired. The first pair of options are low/no-cost other than what you pay for your servers.
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 2 Dec 2022
    InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code. Learn more →

Stats

Basic functions-samples repo stats
58
11,356
5.0
about 18 hours ago
Write Clean JavaScript Code. Always.
Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
www.sonarsource.com