This application is a containerized Analytics suite for an imaginary e-commerce company.
- Bruin
- Superset
- PostgreSQL
- DuckDB
- Docker (Docker Compose)
- Python
OLTP (input data)
OLAP (Data Warehouse)
- portable-data-stack-dagster
- portable-data-stack-mage
- portable-data-stack-airflow
- portable-data-stack-sqlmesh
- postcard-company-dataform
-
Rename
.env.examplefile to.envand set your desired credentials. Remember to never commit files containing credentials or any other sensitive information. -
Rename
shared/db/datamart.duckdb.exampletoshared/db/datamart.duckdbor init an empty database file there with that name. -
With Docker Engine installed, change directory to the root folder of the project (also the one that contains docker-compose.yml) and run
docker compose up --buildNote that this may take several minutes to complete. Check out the console to see the progress.
-
When the assets have been materialized, you can open the Superset interface. Open the dashboard to see the charts.
Demo credentials are set in the .env file mentioned above.
- Superset: 8088
- OLTP Database: 54320
- Generate dummy data using Python and Faker
NOTE: The data is fictional and automatically generated. Any similarities with existing persons, entities, products or businesses are purely coincidental.
-
Insert the data into the OLTP Postgres database
-
Model data, build fact and dimension tables, load the Data Warehouse using SQL assets
-
Analyze and visually explore the data using Superset interface or directly query the DuckDB database file
shared/db/datamart.duckdb
NOTE: For superset, the default credentials are: user = admin, password = admin
- You can also attach a shell to the bruin container and run bruin CLI commands there
The Docker process will begin building the application suite. The suite is made up of the following services, each within its own docker container:
- generator: this is a Python script that will generate, insert and export the example data
- bruin: the data platform
- superset: this contains the web-based Business Intelligence application we will use to explore the data; exposed on port 8088.
- oltp: the OLTP database (Postgres)


