How to use a Dashboard embedding code-snippet in Node.js

- Node.js
- Cloudflare CLI
- Lightdash Project and Dashboard
- Clone the repository
- Run
npm install
- Follow the instructions in server.js then on app.js
- Run
PORT=4000 node server.js
- Use cloudflared to run the app on localhost:4000 e.g.
brew install cloudflared
and thencloudflared tunnel run 4000
- Copy the url from the cloudflared output - remember, this is a temporary url so you can test the app locally with a secure embeded dashboard url
- When you click the button, you should see the dashboard embeded in the iframe