Frontend Development
Prerequisites
- Node.js 22+
- npm 9+
# Check versions
node --version # v22.x.x
npm --version # 9.x.xConsole App
The main Laminar UI for managing pipelines.
cd laminar-frontend/console
# Install dependencies
task install
# Run dev server
task devDev server runs at http://localhost:3000.
Environment Variables
Create .env.local:
# Backend API
NEXT_PUBLIC_API_URL=http://localhost:8080
# Auth
AUTH_SECRET=<openssl rand -base64 32>
AUTH_URL=http://localhost:3000
AUTH_GOOGLE_ID=<google-client-id>
AUTH_GOOGLE_SECRET=<google-client-secret>Google OAuth
Add redirect URI in Google Cloud Console:
http://localhost:3000/api/auth/callback/google
Product App
Marketing site and documentation.
cd laminar-frontend/product
# Install dependencies
task install
# Run dev server
task devDev server runs at http://localhost:3000.
Commands
Both apps support:
| Command | Description |
|---|---|
task install | Install dependencies |
task dev | Run dev server |
task build | Production build |
task lint | Run linter |
Docker Build
# Console
cd console && task docker:build
# Product
cd product && task docker:buildPush to ECR
# Login to ECR
task ecr:login
# Push Console
cd console && task ecr:push
# Push Product
cd product && task ecr:push