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, and Mozilla Firefox.
-
Please get the React with ASP.NET Core sample from GitHub.
-
Please ensure you have enabled embed authentication on the
embed settingspage. If it is not currently enabled, please refer to the following image or detailed instructions to enable it.
-
To download the
embedConfig.jsonfile, please follow this link for reference. Additionally, you can refer to the following image for visual guidance. -
Copy the downloaded
embedConfig.jsonfile and paste it into the designated location within the application. Please ensure you have placed it in the application, as shown in the following image.
-
Open the Python Django folder in Visual Studio Code.
-
Open the terminal in Visual Studio Code and execute the command
python manage.py runserverto run the application. It will display a URL in the command line interface, typically something like http://localhost:8000. Copy this URL and paste it into your default web browser, as shown in the image below.
-
Open the React folder in Visual Studio Code.
-
To install all dependent packages, use the following command
npm install.NOTE: If you are using Node.js version higher than v16.17, you can update the
package.jsonfile by adding the following line as ascriptwithin thestartcommand. Make ensure that you replace the existing line with this updated script."start": "react-scripts --openssl-legacy-provider start"
-
To run the application, use the command
npm startin the terminal. After executing the command, the application will automatically launch in the default browser. You can access it at the specified port number (http://localhost:3000). Please refer to the following image.
NOTE: We represent the dashboard embedding by default without the dashboard listing sidebar. To view the dashboard listing, provide userEmail and embedSecret values in the
DashboardListing.jsfile and then navigate to the URL (such as http://localhost:3000/dashboardlisting).
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.




