How ogulcantekines/portfolio works
Portfolio is a content-managed personal website: visitors browse profile, projects, and blog content or submit a contact message; an authenticated admin edits that content. The frontend is a Next.js app, while an Express REST API validates requests and delegates database work through services to Prisma and PostgreSQL. The README documents the backend layer sequence and major capabilities; excerpts confirm homepage/contact requests and service persistence. Some frontend-to-API connections and route wiring are documented but not visible in sampled source, so those edges cite the README.
Main entry points: controllers Domain controllers · app Public site · app.ts API app · page.tsx Home profile
Components 19
Public frontend
- Public site
apps/frontend/app - Home profile
apps/frontend/app/page.tsx - Project pages
apps/frontend/app/projects - Blog pages
apps/frontend/app/blog - Contact form
apps/frontend/app/contact/page.tsx - Motion components
apps/frontend/components
Admin experience
- Admin dashboard
apps/frontend/app/admin - Admin API client
apps/frontend/lib/adminApi.ts
REST backend
- API app
apps/backend/src/app.ts - API routes
apps/backend/src/routes - Login and auth
apps/backend/src/controllers/auth.controller.ts - Domain controllers
apps/backend/src/controllers - Domain services
apps/backend/src/services - Pagination
apps/backend/src/lib/pagination.ts
Shared data
- Prisma client
apps/backend/src/lib/prisma.ts - PostgreSQL
- Shared schemas
packages/shared/src/schemas.ts - Contact messages
apps/backend/src/services/contact.service.ts
Other components
- Visitor
Connections 21
- Visitor → Public site: browses
README.md - Public site → Home profile: renders
apps/frontend/app/page.tsx - Home profile → Motion components: renders
apps/frontend/app/page.tsx - Home profile → API app: fetches profile
apps/frontend/app/page.tsx - Public site → Project pages: offers projects
README.md - Public site → Blog pages: offers blog
README.md - Visitor → Contact form: submits message
apps/frontend/app/contact/page.tsx - Contact form → API app: posts contact
apps/frontend/app/contact/page.tsx - Visitor → Admin dashboard: manages content
README.md - Admin dashboard → Admin API client: uses API client
- Admin API client → API app: calls REST API
README.md - API app → API routes: mounts routes
apps/backend/src/app.ts - API routes → Domain controllers: dispatches requests
README.md - API routes → Login and auth: routes login
apps/backend/src/routes/auth.route.ts - Domain controllers → Domain services: delegates work
README.md - Domain controllers → Shared schemas: validates input
apps/backend/src/controllers/profile.controller.ts - Domain controllers → Pagination: paginates results
apps/backend/src/controllers/blog.controller.ts - Domain services → Prisma client: queries through
apps/backend/src/services/profile.service.ts - Prisma client → PostgreSQL: reads and writes
README.md - Domain controllers → Contact messages: delegates contact
apps/backend/src/controllers/contact.controller.ts - Contact messages → Prisma client: persists through
apps/backend/src/services/contact.service.ts