How kumar123459/grovio-ai-assignment works
Markdown Notes is a local-first notes app: a person creates or selects notes in the React interface, edits Markdown and tags, sees a live preview, and the app debounces edits before saving them through its API to SQLite. The backend also captures prior note content for version history. Search, theme switching, and version restore are additional UI capabilities. The second frontend tree is a Vite starter, not part of the notes workflow. The supplied excerpts show the main calls; unsampled implementation details are not inferred.
Main entry points: App.jsx Notes app · main.jsx React entry · api.js HTTP client · server.js Notes routes
Components 11
Notes interface
- Notes and search
frontend/src/components/Sidebar.jsx - Title and tags
frontend/src/components/NoteHeader.jsx - Markdown editor
frontend/src/components/Editor.jsx - Live preview
frontend/src/components/Preview.jsx
Client coordination
- React entry
frontend/src/main.jsx - Notes app
frontend/src/App.jsx - Save debounce
frontend/src/hooks/useDebounce.js - HTTP client
frontend/src/api.js
Notes API
- Notes routes
backend/server.js
SQLite persistence
- Notes and versions
backend/db.js
Other components
- Note user
Connections 10
- Note user → React entry: uses app
README.md - React entry → Notes app: renders
frontend/src/main.jsx - Notes app → Notes and search: renders
frontend/src/App.jsx - Notes app → Title and tags: renders
frontend/src/App.jsx - Notes app → Markdown editor: renders
frontend/src/App.jsx - Notes app → Live preview: renders
frontend/src/App.jsx - Notes app → Save debounce: debounces edits
frontend/src/App.jsx - Notes app → HTTP client: requests notes
frontend/src/App.jsx - HTTP client → Notes routes: sends API requests
frontend/src/api.js - Notes routes → Notes and versions: queries and updates
backend/server.js