Project 2 of 7About 1 week, 15-20 hours

DevBoard

A kanban board with drag-and-drop, undo and saving

Build a Trello-style task board in plain JavaScript or React, and learn the idea behind every modern UI framework: the screen is a function of your state.

What it proves: you can model state, keep the DOM in sync with it, and handle the interaction details (drag, undo, keyboard) that separate demos from products.

What you're building

DevBoard is a kanban board: three columns (To Do, In Progress, Done) full of task cards. You can add, edit and delete cards, drag them between columns, filter and search them, and press Ctrl+Z to undo your last ten actions. Close the tab, come back tomorrow, and everything is exactly where you left it. It also works with no mouse at all.

There's no backend. Everything lives in the browser. That's deliberate: with no server to worry about, all your attention goes to state management, which is the skill this project exists to teach.

Features

  • Three columns of task cards, rendered from one state object
  • Add, edit and delete tasks, with a title, an optional description and a priority
  • Drag a card to another column, or to another position in the same column
  • Filter by priority and search by text, instantly, as you type
  • Everything saves to localStorage and survives a refresh
  • Undo the last 10 actions with Ctrl+Z (Cmd+Z on a Mac)
  • Full keyboard control: reach, edit and move every card without a mouse
  • Friendly empty states, smooth transitions and a favicon

The stack

PieceUseWhy
LanguagePlain JavaScript (ES2020+)You'll build by hand what React does for you, so React makes sense afterwards. React is fine too: the milestones are the same.
Markup and stylesHTML and CSS (or Tailwind)Nothing here needs a CSS framework. Plain CSS with custom properties is enough.
Drag and dropThe native HTML Drag and Drop APIIt's built into every browser. A library would hide the two lessons this teaches.
StoragelocalStorageSynchronous, simple, and plenty for one user's board.
ToolingVite (npm create vite@latest)A dev server with instant reload, and no config to write.
HostingVercel, Netlify or GitHub PagesIt's a static site: push to GitHub and it deploys.

How it fits together

  user action (click, drag, key, type)
              │
              ▼
     event handler ──► update(state) ──► save to localStorage
                            │                 (and push a snapshot
                            ▼                  onto the undo stack)
                     render(state)
                            │
                            ▼
                    the DOM you see

Follow one action: you drag "Fix login bug" from To Do to Done. The drop handler reads the task's id, then asks one function to update the state: remove that id from the To Do column's list of ids and insert it into Done's. That function first pushes a copy of the old state onto the undo stack, and afterwards saves the new state to localStorage. Then render(state) redraws the board. The handler never touches the DOM itself. Every feature on the list above is another way into the same loop.

Out of scope

  • A backend, accounts or sync between devices. That's the whole of Project 3. Adding it here means learning two hard things at once.
  • Multiple boards, labels, due dates or comments. Each one is more of the same CRUD work. Make one board excellent instead.
  • A drag-and-drop library. The native API is enough, and you'll understand the libraries better after using it.
  • A virtual DOM or diffing. Re-rendering the whole board is fast enough for a few hundred cards. Measure before you optimise.

How to work through it

  1. The model and the loop (data model, render from state, create/edit/delete): about 5 hours. This is the foundation. If it's right, everything else is quick.
  2. Interaction (drag and drop, filters and search): about 5 hours.
  3. Making it trustworthy (persistence, undo, keyboard access): about 5 hours. Each of these is small because of how you built phase 1.
  4. Polish (empty states, transitions, favicon): about 2 hours.

The rule that decides how this goes: handlers change state and call render; nothing else edits the DOM. Break it once to save five minutes and you'll lose an evening to a card that shows in one column but lives in another.

Show it off

Your README should include:

  • A GIF of dragging a card, refreshing, and the card staying put
  • The state shape (the JSON from the first milestone), with a sentence on why tasks are stored flat
  • How undo works, in two sentences
  • A note on keyboard support, with the keys

In your demo, unplug the mouse and move a card with only the keyboard. Few student projects can do that.

Resume bullets to adapt (use your own numbers):

  • "Built a kanban board in vanilla JavaScript with a single-source-of-truth state model, native drag-and-drop, 10-step undo and full keyboard support"
  • "Designed a normalised state shape that cut moving a task to two array operations, so undo became a simple snapshot stack instead of per-action reverse logic"

The milestones

Do them in order. Each guide explains the concepts and the steps, and ends with a checklist so you know when you're done. You write all the code.

  1. Step 1Design the data model before any UI· 1-2 hoursGuide →
  2. Step 2Render the whole board from state· 2-3 hoursGuide →
  3. Step 3Create, edit, and delete tasks· 2-3 hoursGuide →
  4. Step 4Drag and drop tasks between columns· 3-4 hoursGuide →
  5. Step 5Add filters and instant search· 1-2 hoursGuide →
  6. Step 6Persist everything to localStorage· 1-2 hoursGuide →
  7. Step 7Implement undo for the last 10 actions· 1-2 hoursGuide →
  8. Step 8Make it keyboard-accessible· 2-3 hoursGuide →
  9. Step 9Polish: empty states, transitions, favicon· About 2 hoursGuide →

Want the thinking behind the design? Read the long-form essay on DevBoard →