Road2Work.id adalah AI Career Readiness Platform yang membantu user membangun profil profesional, menemukan role yang relevan, latihan interview berbasis suara dengan AI HRD, menerima feedback berbasis evidence, dan memantau perkembangan melalui Career Readiness Dashboard.
Frontend ini dibangun menggunakan Next.js App Router dengan pendekatan component-based dan struktur Atomic Design.
-
Next.js 16
-
React 19
-
TypeScript
-
Tailwind CSS
-
Framer Motion / Motion
-
Lenis Smooth Scroll
-
Axios
-
TanStack Query
-
React Hook Form
-
Zod
-
Sonner Toast
-
Lucide React
-
Fontsource:
- Space Grotesk
- Plus Jakarta Sans
- DM Mono
frontend/
βββ app/ # Routing Next.js App Router
βββ components/
β βββ atoms/ # Komponen dasar: Button, Input, Badge, Card
β βββ molecules/ # Gabungan atom: form group, cards, checklist item
β βββ organisms/ # Section besar: Navbar, Header, Footer
β βββ templates/ # Page-level UI untuk marketing dan product flow
βββ constants/ # Konstanta UI dan state interview
βββ data/ # Data statis pendukung UI
βββ hooks/ # Custom React hooks
βββ lib/ # Utility/helper
βββ public/ # Asset publik: logo, image, video
βββ services/ # API client dan service layer
βββ types/ # TypeScript API contract types-
Landing page Road2Work.id
-
Auth page: login dan signup
-
Career onboarding:
- Upload CV path
- Manual profile path
- Profile review
- Role fit recommendation
-
Interview preparation checklist
-
Adaptive voice interview UI
-
HRD video state:
IDLEASKINGLISTENINGTHINKINGCLARIFYINGCOMPLETED
-
Live caption preview
-
Interview result
-
Career Readiness Dashboard
-
Admin panel
-
Toast notification
-
Responsive layout untuk desktop dan mobile
Pastikan sudah terinstall:
- Node.js versi 20 atau lebih baru
- npm
- Backend Road2Work.id sudah berjalan
- Machine Learning service sudah berjalan jika ingin mencoba flow interview penuh
Clone repository, lalu masuk ke folder frontend:
cd frontendInstall dependency:
npm installBuat file .env.local berdasarkan .env.example:
cp .env.example .env.localContoh konfigurasi local:
NEXT_PUBLIC_API_URL=http://localhost:5000/api/v1
NEXT_PUBLIC_USE_MOCK_API=falseJalankan development server:
npm run devBuka browser:
http://localhost:3000| Variable | Keterangan |
|---|---|
NEXT_PUBLIC_API_URL |
Base URL backend API |
NEXT_PUBLIC_USE_MOCK_API |
Gunakan mock API lokal jika bernilai true |
Contoh production:
NEXT_PUBLIC_API_URL=https://api.road2work.id/api/v1
NEXT_PUBLIC_USE_MOCK_API=falsenpm run devMenjalankan development server.
npm run buildMembuat production build.
npm run startMenjalankan hasil production build.
npm run lintMenjalankan ESLint.
Landing Page
β Signup/Login
β Career Onboarding
β Pilih Upload CV atau Isi Profil ManualUpload CV
β Profile Review
β Role Fit Recommendation
β Interview Onboarding
β Interview Session
β Result
β Career Readiness DashboardPilih Domain, Role Family, dan Target Role
β Isi Profil Manual
β Profile Review
β Interview Onboarding
β Interview Session
β Result
β Career Readiness DashboardDashboard
β Perbarui Profile
β Profile Review mode edit
β Kembali ke DashboardPada mode edit, user tidak diarahkan ulang ke role ranking. Role aktif tetap menjadi konteks latihan.
Frontend mengikuti state interview berikut:
IDLE
β ASKING
β LISTENING
β THINKING
β CLARIFYING / ASKING
β COMPLETEDIDLE -> /videos/hrd/male/IDLE.mp4
ASKING -> /videos/hrd/male/ASKING.mp4
LISTENING -> /videos/hrd/male/LISTENING.mp4
THINKING -> /videos/hrd/male/THINKING.mp4
CLARIFYING -> /videos/hrd/male/CLARIFYING.mp4
COMPLETED -> /videos/hrd/male/COMPLETED.mp4Sebelum deploy, pastikan build berhasil tanpa error:
npm run buildPastikan environment production sudah sesuai:
NEXT_PUBLIC_API_URL=https://api.road2work.id/api/v1
NEXT_PUBLIC_USE_MOCK_API=falseJangan commit file berikut:
.env
.env.local
.env.production
.next/
node_modules/Coba hard refresh:
Ctrl + Shift + RJika masih belum berubah, hapus cache browser atau restart dev server.
Biasanya berasal dari browser extension. Coba buka di Incognito atau disable extension yang menyisipkan atribut ke DOM.
Pastikan backend berjalan dan NEXT_PUBLIC_API_URL sudah benar.
Local:
NEXT_PUBLIC_API_URL=http://localhost:5000/api/v1Production:
NEXT_PUBLIC_API_URL=https://api.road2work.id/api/v1Cek konfigurasi CORS di backend. Origin frontend production harus masuk allowlist backend.
Contoh:
CORS_ORIGINS=https://www.road2work.id,https://road2work.idMVP Road2Work.id saat ini berfokus pada domain Information Technology. Ekspansi domain lain direncanakan pada fase berikutnya.
Road2Work.id Capstone Project CC26-PSU050