How diogod31/frontend-nextjs works
Estagiun is a student and job-listing frontend: users register or log in, then view and manage job listings and student profiles. Its Next.js pages provide the user-facing routes, reusable forms and layouts handle presentation, and a shared client module performs authenticated requests to a remote API while browser local storage retains the token. The README describes only the Next.js starter, so the product workflow is inferred from the routes and sampled components; unsampled page behavior is not asserted.
Main entry points: auth.js Auth and job API client · index.js Base layout · [id].js Profile update route · perfil.js Profile route
Components 21
Pages and workflows
- Home page
pages/index.js - Login route
pages/login.js - Registration route
pages/register.js - Job listings
pages/cargos.js - Add job route
pages/cargo-register.js - Job detail route
pages/cargo/[id].js - Job update route
pages/cargo-update/[id].js - Dashboard route
pages/dashboard.js - Profile route
pages/perfil.js - Profile update route
pages/perfil-update/[id].js
Forms and navigation
- Login form
components/Auth/Login/index.js - Account form
components/Auth/Register/index.js - Job form
components/Layout/Cargo/index.js - Profile form
components/Layout/Perfil/index.js - Navigation and logout
components/Header.js - Base layout
components/Layout/Base/index.js - Job card
components/CargoCard.js
API and session
- Auth and job API client
lib/auth.js - Token storage
lib/token.js
External services
- Remote application API
Other components
- Visitor or user
Connections 26
- Visitor or user → Home page: opens
- Visitor or user → Login route: opens
- Visitor or user → Registration route: opens
- Visitor or user → Job listings: opens
- Visitor or user → Profile route: opens
- Login route → Login form: renders
pages/login.js - Registration route → Account form: renders
pages/register.js - Login form → Auth and job API client: authenticates
components/Auth/Login/index.js - Account form → Auth and job API client: registers
components/Auth/Register/index.js - Auth and job API client → Token storage: stores token
lib/auth.js - Navigation and logout → Token storage: removes token
components/Header.js - Job listings → Auth and job API client: loads and deletes
pages/cargos.js - Add job route → Job form: renders
pages/cargo-register.js - Job form → Auth and job API client: creates job
components/Layout/Cargo/index.js - Job detail route → Auth and job API client: loads and updates
pages/cargo/[id].js - Job update route → Auth and job API client: updates job
pages/cargo-update/[id].js - Profile route → Profile form: renders
pages/perfil.js - Profile update route → Profile form: renders
pages/perfil-update/[id].js - Profile form → Auth and job API client: registers profile
components/Layout/Perfil/index.js - Profile update route → Auth and job API client: updates profile
pages/perfil-update/[id].js - Auth and job API client → Remote application API: requests data
lib/auth.js - Add job route → Base layout: uses layout
pages/cargo-register.js - Job detail route → Base layout: uses layout
pages/cargo/[id].js - Job update route → Base layout: uses layout
pages/cargo-update/[id].js - Profile route → Base layout: uses layout
pages/perfil.js - Profile update route → Base layout: uses layout
pages/perfil-update/[id].js