Getting Started
Installation
Set up your development environment for the httpjpg monorepo
Installation
Get started with the httpjpg monorepo in minutes.
Prerequisites
Ensure you have the following installed:
- Node.js ≥ 20.x (LTS recommended)
- pnpm ≥ 9.x
- Git
Install pnpm
If you don't have pnpm installed:
npm install -g pnpm@latestOr with Homebrew (macOS):
brew install pnpmClone Repository
git clone https://github.com/dmnktoe/httpjpg.git
cd httpjpgInstall Dependencies
Install all workspace dependencies:
pnpm installThis installs dependencies for all apps and packages in the monorepo.
Environment Setup
1. Copy Environment Files
# Root environment
cp .env.example .env.local
# Web app environment
cp apps/web/.env.example apps/web/.env.local2. Configure Environment Variables
Edit .env.local and apps/web/.env.local with your credentials:
# Storyblok Management API
STORYBLOK_MANAGEMENT_TOKEN=your-management-token
STORYBLOK_SPACE_ID=your-space-id
# Storyblok Content Delivery API
STORYBLOK_PREVIEW_TOKEN=your-preview-token
# Spotify Integration (optional)
SPOTIFY_CLIENT_ID=your-client-id
SPOTIFY_CLIENT_SECRET=your-client-secret
SPOTIFY_REFRESH_TOKEN=your-refresh-tokenGet Storyblok tokens from app.storyblok.com
- Management Token: Settings → Access Tokens
- Space ID: Settings → General
- Preview Token: Settings → Access Tokens
Build Packages
Build all packages before running apps:
pnpm build:packagesOr build specific packages:
# Build UI package
pnpm --filter @httpjpg/ui build
# Build tokens
pnpm --filter @httpjpg/tokens buildDevelopment
Run All Apps
Start all development servers:
pnpm devThis starts:
- Web App: http://localhost:3001
- Storybook: http://localhost:6006
- Docs: http://localhost:3000
Run Specific App
# Web app only
pnpm --filter web dev
# Storybook only
pnpm --filter storybook dev
# Docs only
pnpm --filter docs devVerify Installation
Check that everything works:
# Run type checking
pnpm typecheck
# Run linting
pnpm lint
# Run all checks
pnpm checkTroubleshooting
Port Already in Use
If a port is already in use, update package.json scripts:
"dev": "next dev -p 3002"Module Not Found
If you see module errors, rebuild packages:
pnpm clean
pnpm install
pnpm build:packagesType Errors
Ensure TypeScript is using workspace versions:
pnpm install
pnpm typecheckNext Steps
- Quick Start Guide - Build your first page
- Project Structure - Understand the monorepo layout
- Development Workflow - Learn best practices