How mohaneshwarishanmugaraj-arch/skincare-ai works
This small Next.js skincare app guides a user through a skin-profile quiz, submits the answers to an API route, and displays the generated morning and evening routine. The route builds a prompt and requests a routine from OpenAI; no persistence is shown. The graph covers the evidenced UI, request handling, and AI generation, without treating framework setup as product behavior.
Main entry points: Quiz.tsx Profile quiz · route.ts Skincare API · page.tsx Home page
Components 6
Quiz experience
- Home page
app/page.tsx - Profile quiz
components/Quiz.tsx - Routine result
components/Quiz.tsx
Routine generation
- Skincare API
app/api/skincare/route.ts - OpenAI chat
Other components
- Skincare user
Connections 7
- Skincare user → Home page: opens
- Home page → Profile quiz: renders
app/page.tsx - Skincare user → Profile quiz: enters profile
components/Quiz.tsx - Profile quiz → Skincare API: posts answers
components/Quiz.tsx - Skincare API → OpenAI chat: requests routine
app/api/skincare/route.ts - Skincare API → Routine result: returns routine
app/api/skincare/route.ts - Profile quiz → Routine result: renders result
components/Quiz.tsx