/embedded-portal-setup

Repository to set up a sample embedded portal to replicate Embedded Analytics with Tableau. This portal setup allows you to test out the vital functionalities that most users evaluate when determining if Tableau is a good embedded analytics solution for them.

Primary LanguageCSS

embedded-portal-setup

Repository to set up a sample embedded portal to replicate Embedded Analytics with Tableau. This portal setup allows you to test out the vital functionalities that most users are exploring when determining if Tableau is a good embedded analytics solution for them.

---Pre-requisites---

  1. Clean Windows instance
  2. Minimum tech specs mentioned to be adhered to - https://www.tableau.com/en-sg/products/techspecs#server

---Tableau Server setup---

  1. Install Tableau Server (https://www.tableau.com/products/server). During the installation, change the Run As User account to a Windows administrator, who would have access to CSV files - https://help.tableau.com/current/server/en-us/config_general.htm
  2. Create an initial server admin user with the credentials admin/Tableau123
  3. Add the IP address of the web application server as a trusted IP address (no need to restart just yet) through the TSM Web UI - https://help.tableau.com/current/server/en-us/trusted_auth_trustIP.htm
  4. Make certain changes via the TSM Command Line -
    • Set the trusted tickets to unrestricted by entering the following command - tsm configuration set -k wgserver.unrestricted_ticket -v true
    • Apply all changes and restart the Tableau Server - tsm pending-changes apply
  5. On the Tableau Server, create a new site called 'Template'
  6. Add 2 users in the new site (any password is fine but the role must be 'Explorer (can Publish)') -
    • adrian
    • jamie
  7. Create a new project titled 'Sandbox'.
  8. Apply permissions on the project as per below -
    • Default project -
      • Project - Viewer
      • Workbooks - Interactor + Save/ Save As
    • Sandbox project -
      • Project - Publisher
      • Workbooks/ Data-sources - None
  9. In both cases, ensure that ther project permissions are locked to the project.
  10. Install Tableau Desktop (https://www.tableau.com/products/desktop) and open the workbook in the viz folder. Ensure that the data-source titled 'Sample - Superstore with Data Source Filter' is pointing at the folder titled 'data' within the source files, and not to a temporary folder.
  11. Publish the workbook to Tableau Server on the 'Default' project on the 'Template' site, and ensure that you keep 'Include External Assets' unticked.

---Web application server setup---

  1. Install Python (https://www.python.org/downloads/release/python-374/). Remember to add Python to PATH during installation.
  2. Use the command line to install packages using pip install (https://packaging.python.org/tutorials/installing-packages/#use-pip-for-installing) -
    • tableauserverclient
    • flask
    • cryptography
  3. Navigate to the script titled 'RestCalls.py' script and modify the environment variables at the top (if all other steps have been followed exactly until now, then only the IP address of the instance needs to be modified).
  4. Open a terminal window, and navigate to the FlaskApp folder. Run 'python FlaskApp.py'.

On any machine that has access, access http://webapp-server:5000/ on a web browser and proceed to Login

---Actions---

  1. Login as either Jamie (country manager) or Adrian (regional manager) and seamlessly view dashboards as either user. The first dashboard titled 'Overview' is role-based, and will showcase different datapoints for the two users.
  2. Edit the dashboard and proceed to save a new copy in the 'Sandbox' project, which has been permissioned in such a way that only they can view the newly-saved workbook and no one else.
  3. Create a new user in the persona of either Jamie and Adrian and log in as them to leverage on the same security protocols.