Skip to content
← All release notesNewanfra0.20.0

Try anfra on a sample e-commerce project

`anfra init --example` adds models, a dataset, a small DuckDB file and a Data App, so you can try anfra before you connect a warehouse.

anfra init my-project --example
cd my-project
anfra serve

The sample comes from holistics/anfra-sample-ecommerce (opens in a new tab): six models, an ecommerce dataset with its metrics, a 1.8 MB DuckDB file opened read-only, an overview Data App, and a wiki of the business rules. Its data source replaces the Postgres placeholder in .anfra/data_sources.yml, so queries work right away.

The sample project's Ecommerce Overview Data App in anfra serve, with revenue, orders, average order value, customers and units sold, a revenue and orders chart, and orders by status
The sample's overview Data App.

In a terminal, a plain anfra init asks whether to add it, and the default is no. Without a terminal, anfra init never asks, and tells your agent to ask you first.

Full changelog (opens in a new tab)