Build an authenticated dashboard
Connect a responsive, accessible dashboard to the login API and explain its states in an interview.
Your brief
Build a browser dashboard with login, session restoration, protected invoices, useful request states, and reliable logout.
Start with HTML forms, JavaScript functions, DOM updates, and async requests. Review frontend foundations whenever a concept is unfamiliar.
The supplied API is the backend project’s local model: in-memory accounts and 60-second sessions. Use fake credentials. Display simulation controls help practice rare UI states.
Save all six starter files in one folder. Run node server.mjs and open http://127.0.0.1:3211. Use Node.js 22.12+; no packages are needed.
0 / 6 steps verified by you. Checks are self-reported; this website does not execute your code.
This project uses the API from Build a login system. A working copy is included in the downloads.
- 1
Build an accessible login form
Validate credentials and help a learner recover from mistakes.
- 2
Fetch data and render safe UI states
Translate API responses into deliberate interface behavior.
- 3
Restore the session when the page loads
Ask the server who the user is before displaying private content.
- 4
Handle loading, empty, error, and retry
Make delayed and failed requests understandable and recoverable.
- 5
Handle expired sessions and reliable logout
Clear private data when authority ends and be honest when logout fails.
- 6
Test the interface and explain your decisions
Connect observable behavior to a clear interview answer.