A browser-based todo/project manager built for The Odin Project's JavaScript Todo List assignment:
- Bun for scripts, development server, builds, and tests
- Vanilla JavaScript modules
- HTML and CSS bundled through Bun's HTML entrypoint
localStoragepersistence throughStorageServicehappy-domfor DOM-capable unit tests
Install dependencies:
bun installRun the development server:
bun run devBuild the production bundle:
bun run buildRun unit tests:
bun run test:unitindex.htmlis the Bun HTML entrypoint.src/index.jswires the model and view through the controller.src/model/contains the app data model and task object classes.src/services/storage.jsserializes and deserializes projects forlocalStorage.src/views/contains layout and DOM-facing view components.tests/unit/contains Bun unit tests withhappy-dombrowser globals.dist/contains generated build output.
The app uses a small MVC-style architecture. The model owns project/task state, the view owns DOM rendering and events, and the controller coordinates user actions by updating the model and asking the view to re-render.
Projects can contain todos and checklists. Checklists can contain check items.
Project and item state is persisted under the todo-app-data localStorage key.
- Prefer Bun commands over Node/npm equivalents.
- Keep model mutations explicit: some model methods intentionally do not save automatically because the controller decides when persistence and rendering happen.
- When changing serialized data shapes, update
src/services/storage.jsand add or adjust storage-focused tests. - Do not hand-edit generated files in
dist/; rebuild them withbun run build.