This project was created using React with Python. This application aims to demonstrate how to render the dashboard available on your Bold BI server.
The samples require the following to run.
- Google Chrome, Microsoft Edge, Mozilla Firefox, and Safari.
- Visual studio code(https://code.visualstudio.com/download)
-
The React application acts as a client, and the Python application acts as a server. In the
models.py
file of the Python application, you need to set the User Email and Embed Secret properties.UserEmail UserEmail of the Admin in your Bold BI, which would be used to get the dashboard list. User Password Password of the Admin in Bold BI, which will be used to get the dashboards list. -
Once you have provided the details, run the application using the command "python manage.py runserver." The application will be running on port number 8000.
-
Then, once you run your Python application, you will see results similar to those of the React application.
-
To run the React application, we need to set the following properties in the DashboardListing.js file:
SiteIdentifier For the Bold BI Enterprise edition, it should be like `site/site1`. For Bold BI Cloud, it should be an empty string. RootUrl Dashboard Server URL (Eg: http://localhost:5000/bi, http://demo.boldbi.com/bi). Authorization URL Provide the API end point(get_embed_details) of python application. Environment Your Bold BI application environment. (If Cloud, you should use `cloud,` if Enterprise, you should use `onpremise`). API Host URL of python application(example: http://localhost:8000/). UserEmail UserEmail of the Admin in your Bold BI, which would be used to get the dashboard list. User Password Password of the Admin in Bold BI, which will be used to get the dashboards list. -
Once you provide these details, run the command “npm install.” After all the packages are installed, run the command “npm start.”
NOTE: If the API host is already in use, modify the port number per your preference in embed.js and update that Dashboard.js file.
In a real-world application, it is recommended not to store passwords and sensitive information in configuration files for security reasons. Instead, you should consider using a secure application, such as Key Vault, to safeguard your credentials.
Look at the Bold BI Embedding sample to live demo here.
A complete Bold BI Embedding documentation can be found on Bold BI Embedding Help.