f7782f809111604c4d86405056414adf19f6c6fd
Next.js App Router Course - Starter
This is the starter template for the Next.js App Router Course. It contains the starting code for the dashboard application.
For more information, see the course curriculum on the Next.js Website.
ToDo
Zadnje sam stao na koraku 12 (nisam ga dovršio): https://nextjs.org/learn/dashboard-app/mutating-data
Authentication
Authentication consists of the following parts:
next-authboilerplatemiddleware.ts= hooks-upnext-authinto the page processing pipelineauth.config.ts= defines how user session is to be checked and redirects anonymous user to login page
auth.ts= verifies user credentials during the log-in action (i.e. against a database)- exports
auth,signIn,signOutactions
- exports
- UI boilerplate
sidenav.tsx= implements logout action - callssignOutfromauth.tslogin-form.tsx= implements login formactions.ts= handles login-form validation and submition - callssignInfromauth.ts
Description
Languages
JavaScript
74.7%
TypeScript
24.3%
Shell
0.9%