You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,27 +16,19 @@ If you'd like to remove the "Powered by Metabase" attribution, check out our [En
16
16
17
17
## Prerequisites
18
18
19
-
- Java version 8.x or 11.x.[Install OpenJDK](https://openjdk.java.net/install/).
19
+
- Java version 11 +[Install OpenJDK](https://openjdk.java.net/install/).
20
20
21
21
## Set up Metabase
22
22
23
23
We'll first need to set up a running instance of Metabase to serve the embedded dashboards.
24
24
25
-
1. If you already have an instance of Metabase running on your machine, shut it down.
25
+
1. If you already have an instance of Metabase running on your machine, shut it down. Then download and run Metabase according to the guides in our [install section](https://www.metabase.com/docs/latest/operations-guide/installing-metabase.html).
26
26
27
27
2. Open up a terminal and clone this repo to your machine.
28
28
29
29
3.`cd` into embedding-reference-apps.
30
30
31
-
3. Run the the prepare script.
32
-
33
-
```shell
34
-
./prepare.sh
35
-
```
36
-
37
-
The prepare.sh script downloads the latest version of Metabase to this repository's [metabase](/metabase) directory, changes into that directory, and runs the jar:`java -jar metabase.jar`.
38
-
39
-
Metabase will log its progress in the terminal as the jar runs. Once you see the line, "Metabase Inititalization COMPLETE", open your browser to [localhost:3000](http://localhost:3000) to see that Metabase is up and running.
31
+
3. Run any example depending on the programming language you choose.
Copy file name to clipboardExpand all lines: node/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This Node application demonstrates a simple, barebones Metabase dashboard embedd
4
4
5
5
## Prerequisites
6
6
7
-
-**Metabase**. You should have already completed the setup detailed in the [README](../README.md) for this repository, which shows you how to get an instance of Metabase up and running in the [metabase](../metabase) directory of this repository.
7
+
-**Metabase**. You should have already completed the setup detailed in the [README](../README.md) for this repository, which shows you how to get an instance of Metabase up and running in the [metabase](../metabase) directory of this repository. You have to also configure Metabase for [public sharing](https://www.metabase.com/docs/latest/administration-guide/12-public-links.html) or [embedding](https://www.metabase.com/docs/latest/administration-guide/13-embedding.html).
8
8
9
9
-**Node**. You'll need [Node](https://nodejs.org/en/) installed on your machine to run the application.
10
10
@@ -16,13 +16,13 @@ This Node application demonstrates a simple, barebones Metabase dashboard embedd
16
16
17
17
2. Run `yarn install` to install the application's dependencies.
18
18
19
-
3. Once the application dependencies are installed, run:
19
+
3. Once the application dependencies are installed, run`yarn start` or:
20
20
21
21
```shell
22
22
node index.js
23
23
```
24
24
25
-
4. Open your browser to [localhost:3001](http://localhost:3001).
25
+
4. Open your browser to [localhost:3001](http://localhost:3001) (or the port where this application is running).
26
26
27
27
Explore the app to learn more about embedding Metabase charts and dashboards in applications. You can also check out the links to more documentation in the parent repository's main [README](../README.md).
This is an example of a signed embedded dashboard. We haven't signed any parameters, but we have signed the resource id (in this case dashboard 1). This is means that only application with the signing key are allowed to embed a Metabase resource (vs the public link which can be copy/pasted and shared). Signed embeds can also be set to have an expiration time, which further improves security.
8
+
9
+
p
10
+
To embed this dasbhoard in a webpage (as below), you'll need to generate a url on the server by signing a dictionary specifying the resource and it's signed parameters as below
0 commit comments