How vamshin24/task-management-application works
Project type and purpose
• This is a full-stack task management application.
• Frontend: React + TypeScript SPA for user registration, login, and CRUD operations on tasks.
• Backend: Node.js + Express + TypeScript REST API handling authentication (JWT) and task endpoints.
• Database: PostgreSQL stores users and tasks via a simple migration script.
File structure
• Top-level folders:
– backend/ contains migrations/, package.json, tsconfig.json, and src/ with controllers, middleware, a db connector, etc.
– frontend/ contains public/ assets, src/ React components, package.json, tsconfig.json.
• Backend src/ breakdown:
– controllers/: auth.controller.ts, task.controller.ts (business logic).
– middleware/: auth.middleware.ts (JWT validation).
– db.ts (PostgreSQL client setup using DATABASE_URL).
– interfaces.ts (type definitions for Request bodies, models).
– index.ts (Express app, route binding, environment variable loading).
• Frontend src/ breakdown:
– components/: Navigation, auth (Login/Register), tasks (TaskForm/TaskList).
– App.tsx & index.tsx bootstrap the React Router and global context if any.
– public/: index.html, manifest, robots.txt.
README for additional insights
• Confirms tech stack: React+TS, Node/Express+TS, PostgreSQL.
• Shows database schema via SQL migrations (users, tasks tables).
• Uses environment variables for DB URL, JWT_SECRET, PORT.
• Dev tooling: nodemon for backend, Create React App for frontend.