11
22## Step 1) A custom localhost domain
3- ---
43in your /etc/hosts add an entry for embed.demo.com
5- 127.0.0.1 embed.demo.com
6- <br />
4+
5+ ``` 127.0.0.1 embed.demo.com ```
6+
7+
78<br />
89
910## Step 2) configure green ssl
10- ---
1111create an ssl cert pair named cert.pem and cert.key and place them under the /ssl folder
1212I found this process worked for me on mac, with the latest browser updates.
1313[ Link to Tutorial] ( https://eengstrom.github.io/musings/self-signed-tls-certs-v.-chrome-on-macos-catalina )
@@ -17,38 +17,32 @@ Green SSL is required for events
1717
1818
1919## Step 3) configure looker
20- ---
2120ensure https://embed.demo.com:3000 is added to your looker's embed domain whitelist
22- at <<yourlooker >>.cloud.looker.com/admin/embed
21+ at ` <<yourlooker>>.cloud.looker.com/admin/embed `
2322<br />
2423<br />
2524
2625## Step 4) fill out config.ini
27- ---
28- I left a config.ini.example with values in it to make it as clear as possible (avoiding little issues like trailing slashes)
26+ I left a ` config.ini.example ` with values in it to make it as clear as possible (avoiding little issues like trailing slashes)
2927rename it to config.ini and put in your real values
3028<br />
3129<br />
3230
33- ## Step 5) put in the correct host at
34- ---
35- frontend/src/components/dashboard.js line 14. this app does not put in the config.ini values onto the frontend
31+ ## Step 5) put in the correct host at
32+ ` frontend/src/components/dashboard.js ` line 14. this app does not put in the config.ini values onto the frontend
3633<br />
3734<br />
3835
3936## Step 6) install the dependencies
40- ---
4137(highly reccomended to use a virtual environment)
4238```
4339pip install -r requirements.txt
4440cd frontend
4541npm install
4642```
4743<br />
48- <br />
4944
5045## Step 7) Run it!
51- ---
5246I didn't link them up into a single command, so you might need to open two shells
5347```
5448python main.py
@@ -59,11 +53,9 @@ npm start
5953Now you should be redirected to https://embed.demo.com:3000 where you should see an embeded dashboard
6054with an event that triggered a simple 'Successfully Loaded!' message
6155
62- <br />
6356<br />
6457
6558## Step 8) Vary the user and URL generation methods
66- ---
6759User:
6860Since in your real application, the URL will need to be sensitive to the logged in user
6961this demonstrates how the frontend's request will change what the user sees via the userToken
0 commit comments