TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Codefied-CodePix/KaroCar-platform/llms.txt
Use this file to discover all available pages before exploring further.
admin app is the internal management interface for the KaroCar Platform. Built with Next.js 16 and the shared @karo-car/ui component library, it gives platform operators the tools they need to manage users, vehicles, bookings, and platform-wide configuration. Unlike the public-facing web app, the admin dashboard is an authenticated, internal surface — access should be restricted to authorised operators only.
This application is intended for internal operators only, not public users
or customers. Ensure appropriate authentication and network-level access
controls are in place before deploying to production.
Tech Stack
Next.js 16.2.7
App Router with server components and file-based routing optimised for dashboard-style applications.
React 19.2.4
Latest stable React with concurrent rendering for responsive, data-heavy UI.
Tailwind CSS v4
Utility-first styling with the v4 PostCSS engine, consistent with all other apps in the monorepo.
@karo-car/ui
Shared internal component library providing
Button, Card, and other building-block components.Shared UI Components
The admin app depends on the@karo-car/ui workspace package ("@karo-car/ui": "workspace:*"). This links directly to packages/ui in the monorepo, so any changes to the shared library are immediately reflected here without a separate publish step.
The homepage (app/page.tsx) already imports and renders the shared Button component:
Button component accepts an appName prop that identifies which application is rendering it — useful for analytics and shared component telemetry. See the Button component docs for the full API.
Directory Structure
Package Configuration
Theadmin package declares @karo-car/ui as a runtime dependency using the workspace:* protocol, which resolves to the local packages/ui package managed by pnpm workspaces.
Development Commands
Building & Starting
Install dependencies
Run
pnpm install from the monorepo root. The workspace:* protocol ensures @karo-car/ui is symlinked automatically.Build @karo-car/ui first
If your pipeline does not already handle this, run
turbo build --filter=@karo-car/ui before building the admin app to ensure the UI package output is up to date.Build the admin app
Run
turbo build --filter=admin. Turborepo respects the dependency graph and builds @karo-car/ui first if needed.Linting
Related Pages
UI Package Overview
Learn about the shared @karo-car/ui component library used by this app.
Button Component
Full API reference for the shared Button component imported in admin.
Auth App
The centralised authentication service that gates access to this dashboard.
Local Setup
First-time setup guide for running the full platform locally.
