Skip to content

Project Overview

An admin dashboard where users can sign in, view analytics, manage users, and interact with data visualizations. The dashboard has a sidebar layout, protected routes, and real data from a database.

  • Sign in with email/password or Google
  • Session management with Auth.js
  • Protected routes via middleware
  • Persistent sidebar with navigation
  • Header with user avatar and logout
  • Responsive — collapses to mobile menu
  • Key metrics (users, revenue, orders)
  • Line chart for monthly trends
  • Bar chart for category distribution
  • Paginated user table
  • Search and filter functionality
  • Edit and delete actions
RoutePurposeAuth Required
/loginSign in pageNo
/dashboardAnalytics overviewYes
/dashboard/usersUser managementYes
/dashboard/settingsProfile settingsYes
  • Configure middleware for route protection
  • Build a responsive sidebar layout
  • Fetch and display chart data from a database
  • Implement CRUD operations in a dashboard context
  • Handle loading states with Suspense boundaries