Skip to content

boldbi/react-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 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, Mozilla Firefox, and Safari.

Developer IDE

Run a Sample Using Visual Studio Code

  1. 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.
  2. 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.

  3. Then, once you run your Python application, you will see results similar to those of the React application.

    Python Backend API

  4. To run the React application, we need to set the following properties in the DashboardListing.js file:

    DashboardListing

    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.
  5. Once you provide these details, run the command “npm install.” After all the packages are installed, run the command “npm start.”

    Dashboard view

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.

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

No packages published

Contributors 3

  •  
  •  
  •