This is a demo Next.js application for generating AI-based pet portraits. Users can upload photos, choose art styles, pay via Stripe, and receive generated images via email.
- Copy
.env.local.exampleto.env.localand fill in your API keys. - Install dependencies:
npm install
- Run the dev server:
npm run dev
- Avoid committing binary assets. If you need icons or images, reference them
from a URL or add them to
.gitignore.
- Image generation and email sending are mocked in
app/api/generate/route.ts. - Results are stored in-memory and reset when the server restarts.
Run linting and a production build:
npm run lint
npm run build