Skip to content

๐Ÿ“Š Dynamic pricing dashboard for RFM customer segmentation and price elasticity simulation. React + TypeScript + Vite. Case study on e-commerce pricing strategies.

License

Notifications You must be signed in to change notification settings

Mert-55/elastix

๐Ÿ“Š elastix

Mock Prototype Dynamic pricing dashboard for price elasticity analysis across RFM customer segments

React TypeScript Vite License: MIT

Live Demo

Elastix - https://elastix.vercel.app/ Elastix-Api - https://elastix-api.onrender.com/docs

Dashboard Preview

elastix Dashboard Preview

Segment Elasticity Simulation

elastix Dashboard Simulation

๐ŸŽฏ What is elastix?

elastix is an interactive dashboard prototype for e-commerce managers to explore price elasticity within RFM (Recency, Frequency, Monetary) customer segments. It enables data-driven pricing decisions through:

  • ๐Ÿ“ˆ Segment Visualization โ€” Treemap and Area Charts for customer distribution
  • ๐Ÿ”ฎ What-If Simulations โ€” Interactive price change scenarios
  • ๐Ÿ“Š Revenue Projections โ€” Real-time impact analysis per segment
  • ๐ŸŽจ Modern UI โ€” Built with shadcn/ui and Recharts

๐ŸŽ“ Developed as part of a case study on dynamic pricing strategies in e-commerce


โœจ Features

Feature Status Description
RFM Dashboard โœ… Segment overview with KPIs
Customer Segmentation โœ… Treemap & Area Chart visualizations
Simulation Dashboard โœ… Price scenario modeling
Stock Item Management โœ… Product selection per simulation
Backend Integration ๐Ÿ”„ RTK Query service layer

๐Ÿš€ Quickstart

# Clone
git clone https://github.com/Mert-55/elastix.git
cd elastix

# Install
npm install

# Development
npm run dev
# โ†’ http://localhost:5173

With Backend

# Start elastix-api first (see backend repo)
docker-compose up -d

# Then run frontend
npm run dev

๐Ÿ—๏ธ Project Structure

src/
โ”œโ”€โ”€ app/                    # Application setup
โ”‚   โ”œโ”€โ”€ config/             # Constants, theme
โ”‚   โ”œโ”€โ”€ providers/          # React context providers
โ”‚   โ””โ”€โ”€ store/              # Redux + RTK Query (planned)
โ”œโ”€โ”€ common/                 # Shared infrastructure
โ”‚   โ”œโ”€โ”€ ui/                 # shadcn/ui components
โ”‚   โ”œโ”€โ”€ lib/                # Utilities
โ”‚   โ”œโ”€โ”€ hooks/              # Shared hooks
โ”‚   โ””โ”€โ”€ i18n/               # Localization (DE/EN)
โ””โ”€โ”€ items/                  # Feature modules
    โ”œโ”€โ”€ dashboard/          # Dashboard components
    โ”œโ”€โ”€ simulation/         # Simulation feature
    โ””โ”€โ”€ segmentation/       # RFM segmentation

๐Ÿ› ๏ธ Tech Stack

Category Technologies
Framework React 18, TypeScript 5
Build Vite 5
State Redux Toolkit, RTK Query
UI shadcn/ui, Tailwind CSS
Charts Recharts
i18n react-intl

๐Ÿ“ก Backend API

This frontend connects to elastix-api:

GET  /elasticity          โ†’ Price elasticity data
POST /simulate            โ†’ Run price simulation
GET  /dashboard/segments  โ†’ Segment distribution
GET  /dashboard/kpis      โ†’ Dashboard metrics

๐Ÿค Contributing

Contributions welcome! Please read CONTRIBUTING.md first.

# Fork & clone
git checkout -b feature/{issue-ref}
npm run lint
npm run test
git commit -m "issue-title"
git push origin feature/{issue-ref}
# Open PR

๐Ÿ“š Case Study Context

This project demonstrates dynamic pricing strategies using:

  • RFM Analysis for customer segmentation
  • Log-Log Regression for elasticity estimation (Paczkowski, 2018)
  • What-If Modeling for revenue projection

๐Ÿ”— Related

  • Backend API: elastix-api
  • Data Source: UCI Online Retail Dataset (500k transactions)

๐Ÿ“„ License

MIT License โ€” see LICENSE


Made with โค๏ธ by @Mert-55

About

๐Ÿ“Š Dynamic pricing dashboard for RFM customer segmentation and price elasticity simulation. React + TypeScript + Vite. Case study on e-commerce pricing strategies.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages