This example demonstrates the minimal required setup for an application built with Ranu.js.
- Project configuration with
ranu.config.tsusingdefineConfig - Root layout (
app/layout.tsx) wrapping the application - Default index route (
app/page.tsx) rendered at/
├── app/
│ ├── layout.tsx # Root document layout
│ └── page.tsx # Home page component
├── package.json # Project scripts and dependencies
├── ranu.config.ts # Framework configuration
└── tsconfig.json # TypeScript configuration
Start the local development server:
pnpm devOpen http://localhost:3000 to view the application with Hot Module Replacement (HMR).
Build for production:
pnpm build
pnpm start