firebase

firebase

Testing Firebase integration with React and Jekyll

Jekyll, React and Firebase

The idea is to have a single system that manages data. The front end - based in Jekyll - will be easy to edit by the end user. It will use React to display and edit data. The back end database will be decoupled and eventually a YAML RESTful server.

ReactJS

Designed by Facebook for their own systems, React uses custom HTML components to display and interact with the DOM. It is good for complex sites but only has one way binding of data - so edit pages will be harder

Router

To access pages by the data handle, we need a router component

FireBase Database

FireBase is both database and file store (hosted). The database is document style.

Database

The Firebase database we are using is.

This will be made up of the following data stores.

  • locations
  • units
  • users
  • tenants
  • plans
  • tenancies
  • invoices

Reference

Ultimately the invoices will get their data from the PT database

Hosting

This is used for other assets like images

Javascript to use

The NPM CDN version fails with error Firebase is not defined and they files are different between the two CDNs

vs

Transcribing into ES5

JS is written in ES2015 - which cannot be read by normal browsers. So we want to transcribe it into ES5 version on the fly.

A big brother includes React and React Dom is

In production, we will want to compile it.

Reference

jekyll logo

Want a Jekyll website built?

Hire a Jekyll developer