How rawanmohameedd/notes_app works
Project type and purpose
• This is a full-stack, web-based Notes App.
• Frontend: React + TypeScript (Vite, Tailwind CSS, React Context, react-beautiful-dnd).
• Backend: Node.js + Express + TypeScript, JWT authentication, file-based JSON storage.
File structure
• Top-level: two folders, frontend and backend.
• Frontend substructure:
• src/pages for route views (LoginPage, NotesPage, RegisterPage)
• src/components for UI widgets (Form, Navbar, NoteCard)
• src/auth for React Context & routing guard (AuthContext, PrivateRoute, useAuth)
• src/services/apis.ts encapsulates HTTP calls to backend.
• Backend substructure:
• src/routers for route definitions (auth.ts, notes.ts)
• src/middleware/auth.ts for JWT verification
• src/storage.ts for read/write JSON files (notes.json, users.json)
• src/data holds actual JSON files.
• Notice MVC-like layering: routers → controllers → storage, plus middleware.
README for technical stack & architecture notes
• Confirms JWT‐based authentication, file‐based storage, React Context for state, drag-and-drop library, Tailwind CSS.