Deployable Next.js thesis-generation product page with a minimal backend.
This repository packages a polished web demo for a thesis-generation product, combining a landing page, interactive research intake form, downloadable thesis assets, and a small server route that can return either fallback package output or live model-backed output when API credentials are configured.
- Next.js App Router product page
- Interactive thesis intake form and live package preview
- Minimal backend route at
/api/generate-thesis - OpenAI-ready backend integration with safe fallback mode
- Download shelf for real proposal artifacts and supporting files
- Vercel-ready deployment configuration
flowchart LR
A["Research Intake Form"] --> B["Next.js UI State"]
B --> C["POST /api/generate-thesis"]
C --> D["Fallback Thesis Package"]
C --> E["OpenAI Responses Backend"]
D --> F["Live Package Preview"]
E --> F
F --> G["Download Shelf"]
F --> H["Deployment Demo Surface"]
- thesis-generation product homepage
- interactive preview panel for research questions, chapter deck, tags, and logs
- academic figure showcase
- downloadable proposal files
- backend response mode indicator
app/
api/generate-thesis/route.js
globals.css
layout.js
page.js
components/
product-demo.jsx
lib/
thesis-generator.js
thesis-preview.js
public/
downloads/
figures/
assets/
banner.svg
preview.svg
Install dependencies:
npm installRun locally:
npm run devBuild for production:
npm run buildStart production mode:
npm run startCopy .env.example and configure:
OPENAI_API_KEYOPENAI_MODEL
If OPENAI_API_KEY is missing, the backend automatically returns a structured fallback package so the demo still works.
This repository is prepared for Vercel deployment and already includes:
vercel.jsonnext.config.mjs- a webpack build path chosen for stable Windows builds
Live demo homepage:
MIT