Skip to content

Latest commit

 

History

History
 
 

full-stack-dashboard

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Ranu.js Full-Stack Dashboard Reference Application

A complete full-stack reference application demonstrating the union of SSR, SSG, API routes, middleware, and client-side interactivity in Ranu.js.

Features Included

  • SSR Metrics Dashboard (/): Rendered dynamically on the server on every request
  • SSG Information Page (/about): Static pre-rendered documentation page
  • Live React 19 Widgets: Interactive range selection and responsive client state
  • Server API Route (/api/metrics): REST endpoint returning system runtime stats
  • Custom Middleware (middleware.ts): Global header injection and analytics tagging

Project Structure

├── app/
│   ├── about/page.tsx         # Pre-rendered static documentation
│   ├── api/metrics/route.ts   # REST API route
│   ├── components/
│   │   ├── kpi-card.tsx       # Reusable UI component
│   │   └── traffic-chart.tsx  # Interactive client telemetry widget
│   ├── layout.tsx             # Shared navigation layout
│   └── page.tsx               # Server-rendered live metrics
├── middleware.ts              # Edge/Server request middleware
├── package.json
├── ranu.config.ts
└── tsconfig.json

Running the Example

pnpm dev

Build for production:

pnpm build
pnpm start