Prerequisites
Before you begin, make sure you have the following installed:
- Node.js 20.19.0 or later
- pnpm 9.15.0 or later
Installation
Clone the repository and install dependencies:
git clone https://github.com/your-org/baro-turborepo-template.git
cd baro-turborepo-template
pnpm installDevelopment
Start the development server for the web application:
pnpm dev:webThis will start the Next.js dev server at http://localhost:3000.
Project Commands
| Command | Description |
|---|---|
pnpm dev | Start all workspace dev tasks |
pnpm dev:web | Start only the web app |
pnpm build | Build all apps and packages |
pnpm lint | Lint all apps and packages |
pnpm type-check | Run TypeScript type checking |
pnpm clean | Clean all build outputs |
Adding a New Page
Create a new file under apps/web/app/[locale]/:
// apps/web/app/[locale]/about/page.tsx
import { useTranslations } from 'next-intl'
export default function AboutPage() {
const t = useTranslations()
return (
<div className="container mx-auto py-10">
<h1 className="text-3xl font-bold">About</h1>
<p className="text-muted-foreground mt-4">Your content here.</p>
</div>
)
}Adding Documentation
Create .mdx files in content/docs/en/ to add new documentation pages:
---
title: My New Page
description: A description of this page.
locale: en
sidebar_position: 2
---
Your markdown content here.Then add the page to the sidebar configuration in config/docs.ts.