How akbrx/sistem-rekomendasi-pemilihan-parfume works
PerfumeSuggest is a perfume recommendation web app. Users set aroma-family, budget, and optional sillage, projection, and longevity preferences; the recommendation endpoint reads perfume records, applies TOPSIS, and returns ranked, including over-budget, results for the results view. The app also supports authentication, profile pages, favorites, perfume-family lookup, and perfume education. Source excerpts show recommendation, favorites, registration, and authentication data access; other page/API links are included only where documented or directly visible, so unsampled runtime connections are not asserted.
Main entry points: prisma.ts Prisma client · recommend/route.ts Recommendation endpoint · favorites/route.ts Favorites endpoint · page.tsx Preference form
Components 20
Web experience
- Home and education
sistem-parfum/src/app/page.tsx - Preference form
sistem-parfum/src/app/rekomendasi/page.tsx - Recommendation results
sistem-parfum/src/app/rekomendasi/hasil/page.tsx - Perfume guide
sistem-parfum/src/app/tentang-parfume/page.tsx - App shell
sistem-parfum/src/app/layout.tsx
Recommendation
- Recommendation endpoint
sistem-parfum/src/app/api/perfumes/recommend/route.ts - Family lookup
sistem-parfum/src/app/api/perfumes/families/route.ts
Identity and favorites
- Registration
sistem-parfum/src/app/register/page.tsx - Login
sistem-parfum/src/app/login/page.tsx - User profile
sistem-parfum/src/app/profil/page.tsx - Auth endpoint
sistem-parfum/src/app/api/auth/[...nextauth]/route.ts - Registration endpoint
sistem-parfum/src/app/api/auth/register/route.ts - Auth configuration
sistem-parfum/src/lib/auth.ts - Favorites endpoint
sistem-parfum/src/app/api/favorites/route.ts
Data and scoring
- TOPSIS calculation
sistem-parfum/src/lib/topsis.ts - Prisma client
sistem-parfum/src/lib/prisma.ts - Perfume and user store
sistem-parfum/prisma/schema.prisma - CSV cleaning
clean_data.py - Cleaned perfume data
database/seeders/csv/parfume_cleaned.csv
Other components
- Visitor
Connections 23
- Visitor → Home and education: opens
sistem-parfum/src/app/page.tsx - Home and education → Preference form: links to
sistem-parfum/src/app/page.tsx - Visitor → Preference form: sets preferences
sistem-parfum/src/app/rekomendasi/page.tsx - Preference form → Recommendation endpoint: submits preferences
- Recommendation endpoint → Prisma client: reads perfumes
sistem-parfum/src/app/api/perfumes/recommend/route.ts - Recommendation endpoint → TOPSIS calculation: calculates rankings
sistem-parfum/src/app/api/perfumes/recommend/route.ts - Recommendation endpoint → Recommendation results: returns rankings
- Visitor → Registration: registers
sistem-parfum/src/app/register/page.tsx - Registration → Registration endpoint: submits account
- Registration endpoint → Prisma client: creates user
sistem-parfum/src/app/api/auth/register/route.ts - Visitor → Login: signs in
sistem-parfum/src/app/login/page.tsx - Auth endpoint → Auth configuration: uses configuration
- Auth configuration → Prisma client: reads users
sistem-parfum/src/lib/auth.ts - Visitor → User profile: opens profile
sistem-parfum/src/app/profil/page.tsx - Visitor → Favorites endpoint: manages favorites
sistem-parfum/src/app/api/favorites/route.ts - Favorites endpoint → Auth configuration: checks session
sistem-parfum/src/app/api/favorites/route.ts - Favorites endpoint → Prisma client: reads and writes
sistem-parfum/src/app/api/favorites/route.ts - Visitor → Family lookup: requests families
sistem-parfum/src/app/api/perfumes/families/route.ts - Family lookup → Prisma client: reads families
sistem-parfum/src/app/api/perfumes/families/route.ts - Prisma client → Perfume and user store: queries
- CSV cleaning → Cleaned perfume data: writes cleaned data
clean_data.py - Visitor → Perfume guide: reads guide
sistem-parfum/src/app/tentang-parfume/page.tsx - App shell → Visitor: renders pages