Skip to content

metabase/metabase-nodejs-react-sdk-embedding-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metabase embedding SDK for React sample application

You'll need a Pro or Enterprise version of Metabase 50 up and running. If you're not sure where to start, sign up for Pro Cloud.

Important

The SDK is currently only compatible with Metabase v1.50 or higher

Create .env file

cp .env.example .env

Adjust URLs

In .env, make sure REACT_APP_METABASE_INSTANCE_URL and METABASE_INSTANCE_URL point to your Metabase instance URL, e.g. http://localhost:3000.

Set up your Metabase

Enable SSO with JWT

From any Metabase page, click on the gear icon in the upper right and select Admin Settings > Settings > Authentication.

On the card that says JWT, click the Setup button.

JWT Identity provider URI

In JWT IDENTITY PROVIDER URI field, paste localhost:9090/sso/metabase (or substitute your Cloud URL for localhost).

String used by the JWT signing key

Click the Generate key button. Copy the key and paste it in your .env file into the env var METABASE_JWT_SHARED_SECRET.

Running the server

Change into the server directory:

cd server

Install packages:

npm install

Start the server:

npm start

Start the client

In a different terminal, change into the client directory:

cd client

Install dependencies:

npm install

Start the client app:

npm start

Your browser should automatically open the app. By default, the app runs on http://localhost:3100.

Set up groups and data sandboxing

To set up interactive embedding with JWT and data sandboxing, check out our quick start guide.

Reporting issues

Please report bugs or feature requests as issues in this repository. Please do not report security vulnerabilities on the public GitHub issue tracker. Our Security Policy describes the procedure for disclosing security issues.

Author

Metabase

License

This project is licensed under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published