Docs
Quick Start

Quick Start

Get up and running with the Baro Turborepo Template in minutes. Clone, install, and start developing.

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 install

Development

Start the development server for the web application:

pnpm dev:web

This will start the Next.js dev server at http://localhost:3000.

Project Commands

CommandDescription
pnpm devStart all workspace dev tasks
pnpm dev:webStart only the web app
pnpm buildBuild all apps and packages
pnpm lintLint all apps and packages
pnpm type-checkRun TypeScript type checking
pnpm cleanClean 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.