Bring these concepts with you
Your implementation
- Implement renderTickets in client.mjs using safe DOM text and edit buttons. The provided event adapter handles login, field errors, create/edit, search, pagination and conflicts.
- Run node server.mjs and open http://127.0.0.1:3212. Create at least four tickets as alice, search/filter/page, edit a ticket, then log in as support and change its status. Check that bob cannot see alice’s tickets.
- Run all six checks. Test invalid forms, keyboard navigation, 390px layout, two-tab edit conflict, logout and restart persistence. Record a two-minute browser → session → API → SQL → response explanation.
export function renderTickets(result, root = document, onEdit = () => {}) {
// Safely build rows, wire edit actions, and update page controls.
}Need a hint?
- Use textContent for ticket titles; stored user content must not become HTML.
- Render server-confirmed state. A conflict or validation failure must not show a successful save.
Saved on this device · 0 / 6000 · Do not include passwords or private data.
Acceptance checks
From the folder containing your downloaded files, run:
node checks.mjs ./starter.mjs 6This runs checks up to this step. Earlier steps must work first. Mark each result only after checking your implementation; the website does not run or grade it.
Record your attempt to enable the checklist and reference comparison.
Compare with the reference
Attempt the step first, then compare decisions and behavior. There can be more than one correct implementation.
After attempting every step, compare against the complete runnable app.
Save both reference files beside the starter files. Stop the starter server, run node checks.mjs ./reference.mjs 6, then node server.mjs reference. Open http://127.0.0.1:3212. Both variants use the same database and schema.
Attempt every step to unlock the complete reference downloads.
Your interviewer asks
Walk through a ticket save. Where are identity, validation, authorization, concurrency and persistence enforced?
Say your answer aloud, then record the trade-offs and evidence in your notes above.