Installation Steps
Add a concise value statement that captures reader interest and previews content value. Focus on benefits while keeping it under two lines. Align with your blog categories.
## 1. Clone the Repository
Start by cloning the repository to your local machine:
```bash
git clone https://github.com/your-org/mono.git
cd mono
```
## 2. Install Dependencies
Install all dependencies across the monorepo using pnpm:
```bash
pnpm install
```
This command installs dependencies for all packages in the workspace.
## 3. Set Up Environment Variables
Copy the example environment file and configure it:
```bash
cp .env.example .env
```
Edit .env and add your configuration:
- DATABASE_URL: PostgreSQL connection string
- PAYLOAD_SECRET: Random secret key for encryption
- NEXT_PUBLIC_SITE_URL: Your site URL (http://localhost:3000 for dev)
## 4. Database Setup
Run Payload migrations to set up your database schema:
```bash
pnpm --filter=web db:migrate
```
## 5. Seed Sample Data (Optional)
Load the demo content to see the full capabilities:
```bash
pnpm --filter=web db:seed
```
## 6. Start Development Server
Launch the Next.js development server:
```bash
pnpm dev
```
Your application will be available at http://localhost:3000
The Payload admin panel is at http://localhost:3000/admin
