Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 1.8 KB

File metadata and controls

51 lines (30 loc) · 1.8 KB

Laravel app

This Laravel application demonstrates a simple, barebones Metabase dashboard embedded in a web application using static embedding.

Prerequisites

  • Metabase. You should have already completed the setup detailed in the README for this repository, which shows you how to get an instance of Metabase up and running in the metabase directory of this repository.

  • Composer. You'll need Composer to manage PHP packages.

  • Laravel. You'll need to have Laravel installed on your machine.

Set up the Laravel application

  1. Start a new terminal session, change into this directory, and install the application dependencies using the command composer install. (The package lcobucci/jwt has already been added.)

Note: if you just installed Composer using the default filename for Composer to this directory, you may need to run:

php composer.phar install
  1. Generate an application key. First, create a .env file by copying the example env file.
cp .env.example .env

Then generate the key.

php artisan key:generate

This command will write the key to your new .env file.

  1. To start the application, run:
php artisan serve
  1. Open your browser to localhost:8000 to see the app in action.

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.

Example embedding code