Connecting to the remote server while running the frontend locally

If you only want to work on the frontend side of Redash, and have a Redash instance deployed already (running version 1.0.0 or later), you can use that instance as your API server and run the Webpack dev server locally.

This setup is the most useful when you need to create a new visualization or change a dashboard layout, and you want to use your existing data sources and queries when presenting it.

The setup in this case is much simpler than the previous ones:

  1. Install Node.js (https://nodejs.org/en/download/)
  2. Obtain the Redash source code by cloning the repository, and enter the Redash directory (very important):
git clone [email protected]:getredash/redash.git
cd redash/
  1. Install the npm packages by using the following code:
 npm install
  1. Start the webpack dev server with the following code: 
  REDASH_BACKEND="URL of your redash server" npm run start

The REDASH_BACKEND part of the command sets the URL of the remote Redash server you want to connect your local frontend to.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset