Skip to content

Firebase integration

Kalpan Jasani edited this page Sep 19, 2020 · 2 revisions

There is a dependency on Firebase in this project. We have our own firebase, but you can provide your own too.

There are two firebase "apps", which are part of a project, that have to be referenced from within the "Fetch" project. You would have to create a firebase project and then two apps within that.

  1. For the web application. Copy config details and expose the firebase config variable as as the default export from a config.js JS module in the src folder of the web_app folder. Basically, create a file and export the variable as a default variable. The file should be here: /web_app/src/config.js

  2. Chrome extension. Copy config details for the second app in firebase console and place it in src/config.js module in chrome_extension folder. The file should be here: /chrome_extension/src/config.js

Note: You may not need to provide setup for chrome extension if you are never going to use that sub folder. That is needed if you want to build the chrome extension to install it and use it.

Clone this wiki locally