How academind/claude-code-course-resources works
This repository is course-resource snapshots, not a single deployed application; the finished-project snapshot contains the clearest product, NextNotes, a personal note-taking app. Its main workflow is signing in, creating or editing rich-text notes, and viewing or deleting them; owners can also publish notes for public viewing. The graph focuses on that snapshot and includes the documented course-resource role only as context. Several routes and helpers are identified from the tree but were not excerpted, so their connections are left unverified rather than inferred.
Main entry points: db.ts SQLite database · [id]/page.tsx Note viewer · auth.ts Authentication · edit/page.tsx Edit-note page
Components 24
Account access
- Sign-in page
code-snapshots/finished-project/app/authenticate/page.tsx - Auth API route
code-snapshots/finished-project/app/api/auth/[...all]/route.ts - Authentication
code-snapshots/finished-project/lib/auth.ts - User header
code-snapshots/finished-project/components/header.tsx
Note management
- Notes dashboard
code-snapshots/finished-project/app/dashboard/page.tsx - New-note page
code-snapshots/finished-project/app/notes/new/page.tsx - New-note form
code-snapshots/finished-project/app/notes/new/new-note-form.tsx - Create-note action
code-snapshots/finished-project/app/notes/new/actions.ts - Note viewer
code-snapshots/finished-project/app/notes/[id]/page.tsx - Note controls
code-snapshots/finished-project/app/notes/[id]/note-actions.tsx - Delete and share actions
code-snapshots/finished-project/app/notes/[id]/actions.ts - Edit-note page
code-snapshots/finished-project/app/notes/[id]/edit/page.tsx - Edit-note form
code-snapshots/finished-project/app/notes/[id]/edit/edit-note-form.tsx - Update-note action
code-snapshots/finished-project/app/notes/[id]/edit/actions.ts - Home page
code-snapshots/finished-project/app/page.tsx
Public sharing
- Sharing controls
code-snapshots/finished-project/components/share-toggle.tsx - Public note page
code-snapshots/finished-project/app/p/[slug]/page.tsx
Content and storage
- Rich-text editor
code-snapshots/finished-project/components/rich-text-editor.tsx - Rich-text renderer
code-snapshots/finished-project/components/tiptap-renderer.tsx - Input validation
code-snapshots/finished-project/lib/validation.ts - Content sanitization
code-snapshots/finished-project/lib/sanitize.ts - Content helpers
code-snapshots/finished-project/lib/content.ts - SQLite database
code-snapshots/finished-project/lib/db.ts
Other components
- Visitor
Connections 26
- Sign-in page → Auth API route: uses auth
- Authentication → SQLite database: configures database
code-snapshots/finished-project/lib/auth.ts - New-note page → Authentication: checks session
code-snapshots/finished-project/app/notes/new/page.tsx - New-note page → New-note form: renders
code-snapshots/finished-project/app/notes/new/page.tsx - New-note form → Rich-text editor: renders
code-snapshots/finished-project/app/notes/new/new-note-form.tsx - New-note form → Create-note action: submits to
code-snapshots/finished-project/app/notes/new/new-note-form.tsx - Create-note action → SQLite database: writes note
- Edit-note page → Authentication: checks session
code-snapshots/finished-project/app/notes/[id]/edit/page.tsx - Edit-note page → SQLite database: reads note
code-snapshots/finished-project/app/notes/[id]/edit/page.tsx - Edit-note page → Edit-note form: renders
code-snapshots/finished-project/app/notes/[id]/edit/page.tsx - Edit-note form → Rich-text editor: renders
code-snapshots/finished-project/app/notes/[id]/edit/edit-note-form.tsx - Edit-note form → Update-note action: submits to
code-snapshots/finished-project/app/notes/[id]/edit/edit-note-form.tsx - Update-note action → SQLite database: updates note
- Note viewer → Authentication: checks session
code-snapshots/finished-project/app/notes/[id]/page.tsx - Note viewer → SQLite database: reads note
code-snapshots/finished-project/app/notes/[id]/page.tsx - Note viewer → Rich-text renderer: renders content
code-snapshots/finished-project/app/notes/[id]/page.tsx - Note viewer → Note controls: renders controls
code-snapshots/finished-project/app/notes/[id]/page.tsx - Note viewer → Sharing controls: renders controls
code-snapshots/finished-project/app/notes/[id]/page.tsx - Note controls → Delete and share actions: calls delete
code-snapshots/finished-project/app/notes/[id]/note-actions.tsx - Sharing controls → Delete and share actions: calls sharing
- Delete and share actions → SQLite database: changes notes
code-snapshots/finished-project/app/notes/[id]/actions.ts - Public note page → SQLite database: reads shared note
- Visitor → Sign-in page: signs in
- Visitor → Notes dashboard: manages notes
- Visitor → Public note page: views shared note
- Home page → Visitor: welcomes