Skip to content

Commit db88d6f

Browse files
committed
Update dependencies and change the documentation
1 parent 11bcff0 commit db88d6f

File tree

8 files changed

+6
-878
lines changed

8 files changed

+6
-878
lines changed

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,19 @@ If you'd like to remove the "Powered by Metabase" attribution, check out our [En
1616

1717
## Prerequisites
1818

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/).
2020

2121
## Set up Metabase
2222

2323
We'll first need to set up a running instance of Metabase to serve the embedded dashboards.
2424

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)
2626

2727
2. Open up a terminal and clone this repo to your machine.
2828

2929
3. `cd` into embedding-reference-apps.
3030

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
4032

4133
## Running the apps
4234

metabase/metabase.db.mv.db

-652 KB
Binary file not shown.

metabase/metabase.db.trace.db

Lines changed: 0 additions & 3 deletions
This file was deleted.

node/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ This Node application demonstrates a simple, barebones Metabase dashboard embedd
1414

1515
1. In a new terminal session, `cd` into this directory.
1616

17-
2. Run `yarn install` to install the application's dependencies.
17+
2. Run `yarn install` or `npm install` to install the application's dependencies.
1818

1919
3. Once the application dependencies are installed, run:
2020

2121
```shell
2222
node index.js
2323
```
2424

25-
4. Open your browser to [localhost:3001](http://localhost:3001).
25+
4. Open your browser to [localhost:3000](http://localhost:3000) (or the port where Metabase is running).
2626

2727
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).
2828

node/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const express = require("express");
22
const session = require("express-session");
3-
const bodyParser = require("body-parser");
43
const jwt = require("jsonwebtoken");
54

65
const PORT = process.env["PORT"] ? parseInt(process.env["PORT"]) : 3001;
@@ -32,7 +31,7 @@ const app = express();
3231

3332
app.set("view engine", "pug");
3433
app.use(session({ secret: "FIXME", resave: false, saveUninitialized: true }));
35-
app.use(bodyParser.urlencoded({ extended: false }));
34+
app.use(express.urlencoded({ extended: false }));
3635

3736
app.get("/", (req, res) => res.render("index"));
3837

node/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.0.0",
44
"main": "index.js",
55
"dependencies": {
6-
"body-parser": "^1.19.0",
76
"express": "^4.17.1",
87
"express-session": "^1.17.1",
98
"jsonwebtoken": "^8.5.1",

0 commit comments

Comments
 (0)