Getting Started

Explainer v2 is a monorepo documentation boilerplate built with Astro, React, Tailwind CSS 4, and pnpm. It ships three independent apps — docs, blog, and website — sharing a common UI and MDX component library.

Prerequisites — Make sure you have the following installed before continuing:

Installation

Clone the repository

git clone https://github.com/LeadcodeDev/explainer-v2.git
cd explainer-v2

Install dependencies

pnpm install

Configure environment variables

Copy the example environment file and adjust values if needed:

cp .env .env.local
.env
PUBLIC_WEBSITE_URL=http://localhost:4323
PUBLIC_DOCS_URL=http://localhost:4321
PUBLIC_BLOG_URL=http://localhost:4322

Start the development server

pnpm dev

This starts all three apps simultaneously using Turborepo.

Dev servers

AppPortURLPackage
Docs4321http://localhost:4321@explainer/docs
Blog4322http://localhost:4322@explainer/blog
Website4323http://localhost:4323@explainer/website

You can also start a single app:

pnpm dev --filter @explainer/docs

Next steps

Project Structure

Understand how the monorepo is organized.

Learn more →

Writing Content

Create your first documentation page.

Learn more →