Skip to content
Back to projects

Project / MERN stack / Dashboard

Analytics Dashboard

Interactive dashboard turning raw event data into clear insights.

Year
2024
Role
Full-stack developer, mostly frontend
Type
Dashboard
Stack
MERN

Tech stack

  • React
  • Node.js
  • Express
  • MongoDB
  • Recharts

01 / Overview

Overview

A data dashboard with filterable charts, saved views and CSV export, backed by aggregation pipelines for responsive queries on large datasets.

02 / The problem

The problem

Event data sat in raw collections, so answering a simple question like "how many sign-ups this week?" meant asking a developer to run a query.

03 / My approach

My approach

I worked backwards from the questions people ask most and built charts for those. The heavy lifting is done by MongoDB aggregation pipelines, with results cached for a short time, so filters feel instant. Every view can be saved and shared as a link.

04 / Key features

Key features

  • Line, bar and table views for the same data
  • Date range and segment filters
  • Saved views with shareable links
  • CSV and PDF export
  • Loading and empty states that explain themselves
  • Dark and light themes

05 / Challenges & learnings

Challenges & learnings

  1. 01

    Queries that got slower with data

    The first pipelines scanned whole collections. Adding the right indexes and filtering as early as possible in the pipeline brought them back to well under a second.

  2. 02

    Charts with thousands of points

    Drawing every point made the page sluggish. The server now groups data into buckets that fit the chart's width.

  3. 03

    Making filters shareable

    Filter state lives in the URL, so a link recreates the exact view, and the back button works the way people expect.

06 / Gallery

Gallery

Click an image to enlarge it.

Next project

Community Hub

A social platform with profiles, posts and threaded discussions.