assistiv Frontend
Main product frontend architecture, routing model, and backend integration points.
Repository: assistiv
Stack
- Next.js
14.1.1 - React
18 - TypeScript
- Redux Toolkit
Route Structure (App Router)
Major route groups identified in app/:
(auth)for sign-up, invites, login redirect(portal)/studentfor student workflows (courses,course,lesson,study,spaces,profile)(portal)/adminfor tenant-admin workflows (courses,grades,group,reports, system setup pages)guest-playgroundfor unauthenticated playground flow
API Integration
app/services/util/request-service.ts defines two base URLs:
- Main API base URL (
assistiv-backend) - Aurora API base URL (
aurora)
Requests choose Aurora when aurora: true is passed into request helpers.
URL Resolution
app/services/util/utility-service.ts resolves production URLs by hostname and defaults to:
https://backend.useassistiv.com/https://backend.useassistiv.com/aurora/v1/
Key Environment Variables
NEXT_PUBLIC_API_URL_DEVELOPMENTNEXT_PUBLIC_AURORA_API_URL_DEVELOPMENTNEXT_PUBLIC_API_URL_PRODUCTIONNEXT_PUBLIC_AURORA_API_URL_PRODUCTION- Auth/provider keys such as Google and Microsoft values
Notes
- Local run command uses HTTPS and port
4200. - Authentication flows use backend redirect endpoints under
/auth/....