Example of connectivity between FIREBASE database and InterSystems IRIS.
You can find more in-depth information in https://learning.intersystems.com.
-
Docker (if you are using Windows, make sure you set your Docker installation to use "Linux containers").
-
Visual Studio Code + InterSystems ObjectScript VSCode Extension
Build the image that we will use during the workshop:
$ git clone https://github.com/intersystems-ib/workshop-firebase
$ cd workshop-firebase
$ docker-compose build
Firebase is a Google platform for the development of web applications, for this example we are going to create an adapter to connecto with Cloud Firestore, a NoSQL database available in Firebase.
Very easy! Just run the following command to start the IRIS instance:
$ docker-compose up -d
-
An IRIS Community installed and accesible from the Management Portal (user: superuser / password: sys).
-
A production with a Business Service configured, this BS has a custom adapter configured to connect with a Cloud Firestore database using Embedded Python. There are two parameters to be configured:
- KeyPath: with the path to the json file wich contains the key to access to your database
- DocName: the name of the collection that you want to retrieve.
-
A requirements.txt with the Python library necessary to connect with Firebase project.
- To run this project you need a Firebase account and a project created with a Cloud Firestore database created to get a json file with the key to connect.
- Check this article from the developer community