const functions = require("firebase-functions");
const admin = require("firebase-admin");

// Firebase authentication
var serviceAccount = require("./permission.json");
  credential: admin.credential.cert(serviceAccount),
  databaseURL: "" //https://[DATABASE NAME]

const express = require("express");
const app = express();
const db = admin.firestore();

const cors = require("cors");
app.use( cors({ origin:true }));
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter