Skip to content

Setup Guide ​

Local development setup for collage-admin — the Nuxt 4 DAM frontend.

Repository: github.com/Collage-Inc/collage-admin


Prerequisites ​

ToolRequired version
Node.js^22.12.0 (LTS recommended)
pnpm>=9.0.0

Install Node via nvm or fnm and pnpm via:

bash
npm install -g pnpm

Clone Repository ​

bash
git clone https://github.com/Collage-Inc/collage-admin.git
cd collage-admin

Install Dependencies ​

bash
pnpm install

postinstall runs nuxt prepare automatically, generating .nuxt/ types.


Environment Variables ​

Copy the example file and fill in the required values:

bash
cp .env.example .env

Minimum required variables to run locally:

VariableDescription
APP_NAMEApp display name (e.g. Collage DAM)
APP_ENVEnvironment name (development, staging, production)
API_BASE_URLBackend API base URL (e.g. http://localhost:8000/api)
BACKEND_URLBackend root URL
BASE_URLFrontend base URL (e.g. http://localhost:3000)
DAM_FRONTEND_URLDAM frontend URL
PUSHER_KEYPusher app key (for real-time WebSocket)
PUSHER_CLUSTERPusher cluster (e.g. mt1)
PUSHER_AUTH_ENDPOINTPusher auth endpoint
TYPESENSE_HOSTTypesense server host
TYPESENSE_PORTTypesense port (default 8108)
TYPESENSE_PROTOCOLhttp or https
TYPESENSE_API_KEYTypesense search-only API key
AWS_ACCESS_KEY_IDAWS key for S3 uploads
AWS_SECRET_ACCESS_KEYAWS secret for S3 uploads
AWS_BUCKETS3 bucket name
AWS_DEFAULT_REGIONAWS region (e.g. us-east-1)
STRIPE_PUBLISHABLE_KEYStripe publishable key (front-end checkout)
STRIPE_SECRET_KEYStripe secret key (server-side billing)
AMPLITUDE_API_KEYAmplitude project key (set empty to disable tracking)

Optional:

VariableDefaultDescription
NUXT_PUBLIC_QUERY_STALE_TIME300000TanStack Query stale time in ms (5 min)

Full variable reference is in .env.example at the repo root.


Start Dev Server ​

bash
pnpm dev

Opens at http://localhost:3000 by default. Hot module replacement is enabled.


Other Commands ​

CommandDescription
pnpm buildProduction build (nuxt build)
pnpm previewPreview the production build locally
pnpm typecheckType-check all .ts and .vue files
pnpm lintRun ESLint
pnpm lint:fixAuto-fix ESLint issues
pnpm cleanRemove .nuxt, .output, and Vite cache

Troubleshooting ​

Types missing or stale after install

bash
pnpm run postinstall

Runs nuxt prepare to regenerate .nuxt/ types without a full reinstall.

Port already in use

Override the port via .env:

PORT=3001

Module not found after switching branches

bash
pnpm clean && pnpm install