How ennded/smarttodo-ai works
Project type and purpose
• Full-stack web application (“SmartToDo-AI”)
• React-based single-page frontend that lets users register, log in, manage to-do items, and interact with AI features (chat, suggestions, weekly summary)
• Node.js/Express backend providing REST endpoints for authentication, to-do CRUD, and proxy to OpenAI
• Prisma ORM for relational DB persistence (e.g., PostgreSQL)
File structure
• Top-level:
• client/ — React app, organized by api, components, features (Redux slices), pages, tests, config, utils
• server/ — Express service, organized by routes, controllers, models, middleware, utils, Prisma schema, tests
• config files (vercel.json, .github/workflows) and package.json at root
• Patterns:
• Frontend uses Redux Toolkit (features folder), React Router (ProtectedRoute), Tailwind/CSS for styling
• Backend uses MVC-style controllers and middleware, JWT auth, OpenAI integration, input validation
• Shared client-server proxy (client/src/setupProxy.js)
README
• Minimal here; title implies AI-enhanced to-do list
Final recommendations
• Be explicit about middleware layers (auth, error handling) in the API
• Redux slices or feature modules to illustrate state management boundaries
• Proxy setup in development (client/src/setupProxy.js)
• Versioning or environment annotations if relevant (e.g., “/api/v1/…”)