This Django application demonstrates a simple, barebones Metabase dashboard embedded in a web application using static embedding.
-
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.
-
Python. You'll need to have Python installed on your machine.
-
In a new terminal session,
cd
into /embedded-analytics. -
Install the application's dependencies:
pip install -r requirements.txt
- Once the dependencies are installed, start the application by running:
./manage.py runserver
- Open your browser to localhost:8000.
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.
You can find example code for embedding Metabase in user_stats/views.py.