Next.js app for the Histified UI. Provides upload flows, analysis results (image and article), and a polished interface.
- Node.js 18+
- pnpm/npm/yarn
npm installCreate .env.local with:
# Backend base URL used by the frontend (falls back to /api)
NEXT_PUBLIC_API_URL=http://localhost:4000/apinpm run dev– start Next.js dev servernpm run build– production buildnpm run start– start production server
- API helper:
lib/api.jsusesNEXT_PUBLIC_API_URL || /api. - Path alias:
@/*is configured intsconfig.json. - Visual and article analysis results are rendered in
components/pages/results-page.tsx.
app/– Next.js app routercomponents/– UI and pageslib/– API helpers and utilitiespublic/– static assets