Skip to content

alkingold/performance-analytics-dashboard

Repository files navigation

Performance Analytics Dashboard

Next.js TypeScript Tailwind

Live Demo

GitHub Repository: https://github.com/alkingold/performance-analytics-dashboard

Performance analytics dashboard built with modern React tools to visualize entity metrics and historical performance data.

Stack

This is a Next.js project bootstrapped with create-next-app.

  • Next.js
  • React
  • TypeScript
  • TailwindCSS
  • TanStack Query
  • Recharts

Features

  • Select entities to visualize their metrics
  • Choose multiple graphs (up to 3)
  • Display spot metrics and historical trends
  • Async data fetching with TanStack Query

Key concepts

  • Feature-based architecture
  • Data fetching with TanStack Query
  • Dynamic chart rendering
  • Component composition

Architecture

Project Structure

The project follows a feature-based architecture to keep business logic, UI, and shared utilities well organized.

app/
├─ page.tsx # Landing page
└─ dashboard/page.tsx # Dashboard page

features/
└─ dashboard/
├─ components/ # Dashboard-specific UI components
├─ hooks/ # Custom hooks (state, data logic)
└─ config/ # Graph definitions and configuration

shared/
├─ api/ # API client and data fetching logic
├─ components/ # Reusable UI components
├─ providers/ # Global providers (TanStack Query)
└─ utils/ # Shared utility functions

Architecture Principles

  • Feature-based structure: business logic related to a feature lives in the same module.
  • Shared layer: reusable utilities and providers are centralized.
  • Separation of concerns: UI, hooks, and configuration are clearly separated.

Run locally

npm install
npm run dev

Open http://localhost:3000 with your browser to see the result.

Screenshots

Landing Page:

Landing Page

Dashboard Three Graphs View:

Dashboard Three Graphs

Dashboard Dropdown View:

Dashboard Three Graphs

Dashboard One Graph View:

Dashboard Three Graphs

About

Performance analytics dashboard built with Next.js, TypeScript, Recharts, TailwindCSS and TanStack Query.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors