promptgrade-frontend

PromptGrade Frontend

Next.js frontend for PromptGrade. This app is configured as a static export and is deployed via GitHub Pages.

Stack

Prerequisites

Environment Variables

Copy .env.example to .env.development:

cp .env.example .env.development

Available variables:

Local Development

  1. Install dependencies:
npm install
  1. Run dev server:
npm run dev
  1. Open:
http://localhost:3000

Run With Local Backend

Frontend expects the backend at NEXT_PUBLIC_API_URL (for local, usually http://localhost:8080).

If your backend runs on a different port/host, update .env.development:

NEXT_PUBLIC_API_URL=http://localhost:8080

Then restart npm run dev.

Production Build (Static Export)

Build output is exported to out/:

npm run build

Pipeline (GitHub Actions)

Workflow file: .github/workflows/deploy-pages.yml

Current behavior:

GitHub repository variables expected by the workflow:

Useful Commands

npm run dev
npm run build
npm run start
npm run lint