shams mosowi eb73ed02b0 csv
2019-09-27 17:37:26 +10:00
2019-09-10 13:36:59 +10:00
csv
2019-09-27 17:37:26 +10:00
2019-09-22 22:12:43 +10:00
csv
2019-09-27 17:37:26 +10:00
2019-09-27 16:41:55 +10:00
2019-09-25 11:53:05 +10:00
2019-09-27 17:16:39 +10:00

Firetable

Firetable is a simple CMS for Google Firebase.

Setup instructions

create a firebase project

  • enable firestore
  • enable google auth create an algolia project

Cloud functions setup

set environment variables

firebase functions:config:set algolia.app=YOUR_APP_ID algolia.key=ADMIN_API_KEY

deploy the following callable cloud functions to update and delete algolia records

const functions = require("firebase-functions");
const env = functions.config();
const algolia = require("algoliasearch");
exports.updateAlgoliaRecord = functions.https.onCall(async (data, context) => {
    const client = algolia(env.algolia.appid, env.algolia.apikey);
    const index = client.initIndex(data.collection);
    await index.partialUpdateObject(Object.assign({ objectID: data.id }, data.doc));
    return true;
});

exports.deleteAlgoliaRecord = functions.https.onCall(async (data, context) => {
    const client = algolia(env.algolia.appid, env.algolia.apikey);
    const index = client.initIndex(data.collection);
    await index.deleteObject(data.id);
    return true;
});

Clone repo

add .env file to the project directory

REACT_APP_FIREBASE_PROJECT_NAME =
REACT_APP_FIREBASE_PROJECT_KEY =
REACT_APP_ALGOLIA_APP_ID =
REACT_APP_ALGOLIA_SEARCH_KEY =

install dependencies

yarn

Run project locally

yarn start
Description
Low-code backend platform. Manage database on spreadsheet-like UI and build cloud functions workflows in JS/TS, all in your browser. rowy.io
Readme Apache-2.0 26 MiB
Languages
TypeScript 99.5%
JavaScript 0.3%
HTML 0.2%