This quickstart walks you through everything you need to go from zero to a fully running local development environment for KaroCar Platform. By the end you’ll have all six Next.js applications — web, admin, auth, customer, vendor, and corporate — running concurrently via Turborepo’s task orchestration, and you’ll know how to build, lint, and target individual apps with filter flags.Documentation 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.
Prerequisites
Before you begin, make sure the following are installed on your machine:| Requirement | Version | Notes |
|---|---|---|
| Node.js | >=18 | Specified in the root package.json engines field |
| pnpm | 9.0.0 | Specified as packageManager in the root package.json |
The
packageManager field in package.json is set to pnpm@9.0.0. If you
have Corepack enabled (corepack enable), Node.js will automatically use the correct pnpm version without any
manual installation step.Setup Steps
Clone the repository
Clone KaroCar Platform from GitHub and navigate into the project root:The repository is a private monorepo — ensure you have access and that your
Git credentials are configured before cloning.
Install dependencies
Run a single You should see pnpm hoist shared dependencies and link internal packages
(like
pnpm install from the repository root. Because
pnpm-workspace.yaml declares both apps/* and packages/* as workspace
members, pnpm resolves and installs the dependencies for all six apps
and all shared packages in one pass, hard-linking shared modules to
save disk space:@karo-car/ui) directly from the packages/ui source directory —
no publishing required.Never run
npm install or yarn in individual app directories. Always
install from the repo root so that pnpm’s workspace linking is preserved
and lockfile integrity is maintained.Start the development servers
Start all six Next.js applications simultaneously. The root Turborepo streams the combined output of all apps to your terminal,
prefixed by the app name so you can distinguish logs at a glance. Each
Next.js app starts on its own port (Next.js auto-increments from
dev script
delegates to turbo run dev, which fans out the task to every workspace
package in parallel:3000
when ports are already in use).Build for production
Compile all apps and packages for production. The root Build artifacts for each Next.js app are written to the app’s
build script runs
turbo run build, which respects the dependsOn: ["^build"] task
definition — shared packages are always compiled before the apps that
import them:.next/
directory, as declared in the outputs field of turbo.json.To build a single app and its upstream package dependencies only:Other Root Scripts
The rootpackage.json exposes several other useful scripts you can run from
the repo root at any time:
| Script | Command | What it does |
|---|---|---|
pnpm lint | turbo run lint | Runs ESLint across all apps and packages |
pnpm format | prettier --write "**/*.{ts,tsx,md}" | Auto-formats all TypeScript and Markdown files |
pnpm check-types | turbo run check-types | Runs tsc --noEmit across all workspaces |
What’s Next?
Monorepo Structure
Understand the directory layout, pnpm workspace globs, and how Turborepo’s
task graph coordinates builds.
Local Setup
Environment variables, editor configuration, and tips for a smooth day-to-day
development experience.
