Skip to content

boldbi/react-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BoldBI Embedding React with Python Sample

This project was created using React with Python. This application aims to demonstrate how to render the dashboard available on your Bold BI server.

Dashboard view

Dashboard view

Prerequisites

The samples require the following to run.

Help link

Supported browsers

  • Google Chrome, Microsoft Edge, and Mozilla Firefox.

Configuration

  • Please get the React with ASP.NET Core sample from GitHub.

  • Please ensure you have enabled embed authentication on the embed settings page. If it is not currently enabled, please refer to the following image or detailed instructions to enable it. Embed Settings

  • To download the embedConfig.json file, please follow this link for reference. Additionally, you can refer to the following image for visual guidance.

    Embed Settings Download EmbedConfig Properties

  • Copy the downloaded embedConfig.json file 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.

    EmbedConfig image

Developer IDE

Run a Sample Using Visual Studio Code

Python sample via VS Code

  1. Open the Python Django folder in Visual Studio Code.

  2. Open the terminal in Visual Studio Code and execute the command python manage.py runserver to 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.

    backend image

React sample via VS Code

  1. Open the React folder in Visual Studio Code.

  2. 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.json file by adding the following line as a script within the start command. Make ensure that you replace the existing line with this updated script.

    "start": "react-scripts --openssl-legacy-provider start"
  3. To run the application, use the command npm start in 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.

    dashboard view

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.js file and then navigate to the URL (such as http://localhost:3000/dashboardlisting).

Important notes

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.

Online demos

Look at the Bold BI Embedding sample to live demo here.

Documentation

A complete Bold BI Embedding documentation can be found on Bold BI Embedding Help.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •