Skip to content

A modern, full-featured ๐Ÿงฉ MERN stack task manager with JWT auth, smart filtering, and responsive UI built using React, Node.js, Express, and MongoDB ๐Ÿ’ผโœ…

Notifications You must be signed in to change notification settings

dsaikiran01/TaskMaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ TaskMaster โ€” MERN Stack Task Management App

A production-ready, full-featured to-do list app built with the MERN stack (MongoDB, Express.js, React, Node.js), featuring modern UI/UX, smart task organization, and JWT-based authentication.


โœจ Feature Highlights

  • ๐Ÿ” Secure Authentication (JWT, bcrypt)
  • โœ… Full Task CRUD with priority, tags, due dates
  • ๐Ÿ—‚๏ธ Advanced Filtering by date, tags, status
  • ๐Ÿ“… Smart Grouping: Today, Tomorrow, Overdue
  • ๐ŸŽจ Modern Responsive UI (Tailwind + React + TypeScript)
  • โšก Real-Time Updates, inline editing, animations
  • ๐Ÿ“Š Statistics Dashboard for task insights
  • ๐ŸŒ™ PWA-Ready (future) & mobile-first design

๐Ÿ› ๏ธ Tech Stack

Frontend Backend Database Tooling & Libraries
React + Vite Node.js + Express MongoDB ESLint, Prettier, CORS
TypeScript JWT Auth, bcryptjs Mongoose express-validator, dotenv
Tailwind CSS REST API MongoDB Atlas (prod) React Router, Axios

๐Ÿ“ Project Structure


TaskMaster/
โ”œโ”€โ”€ backend/                 # Express.js API
โ”‚   โ”œโ”€โ”€ config/              # Environment config
โ”‚   โ”œโ”€โ”€ middleware/          # Auth & validation
โ”‚   โ”œโ”€โ”€ models/              # Mongoose schemas
โ”‚   โ”œโ”€โ”€ routes/              # API routes
โ”‚   โ”œโ”€โ”€ server.js            # Entry point
โ”‚   โ””โ”€โ”€ Dockerfile           # Backend Docker support
โ”œโ”€โ”€ frontend/                # React + TypeScript App
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/      # Reusable UI elements
โ”‚   โ”‚   โ”œโ”€โ”€ contexts/        # Auth and Task providers
โ”‚   โ”‚   โ”œโ”€โ”€ pages/           # Login, Signup, Dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ services/        # Axios-based API layer
โ”‚   โ”‚   โ””โ”€โ”€ types/           # Global TS types
โ”‚   โ””โ”€โ”€ Dockerfile           # Frontend Docker support
โ””โ”€โ”€ docker-compose.yml       # Unified dev setup


โš™๏ธ Getting Started (Local Dev)

Prerequisites

  • Node.js v16+
  • MongoDB (local or Atlas)
  • npm or yarn

1. Clone the Repository

git clone <repo-url>
cd TaskMaster

2. Backend Setup

cd backend
cp config.env.example config.env
npm install
npm run dev

Runs at http://localhost:5000

3. Frontend Setup

cd frontend
npm install
echo "VITE_APP_API_URL=http://localhost:5000/api" > .env
npm run dev

Runs at http://localhost:5173


๐Ÿ“ก API Overview

Authentication

Endpoint Method Description
/api/auth/signup POST Register user
/api/auth/login POST Login and get token

Tasks (Protected)

Endpoint Method Description
/api/tasks GET Fetch all tasks
/api/tasks POST Create a new task
/api/tasks/:id PUT Update a task
/api/tasks/:id DELETE Delete a task
/api/tasks/:id/toggle PATCH Toggle completion status

Query Parameters

  • completed=true|false
  • priority=low|medium|high
  • tag=tagName
  • dueDate=YYYY-MM-DD

๐ŸŽฏ App Features in Detail

๐Ÿ” Secure Auth System

  • Password hashing with bcrypt
  • JWT token-based login and middleware protection
  • Token sent in Authorization header: Bearer <token>

๐Ÿ—‚๏ธ Smart Task Management

  • Due date parsing with grouping: Today, Tomorrow, Overdue
  • Tags and priorities to organize tasks
  • Inline editing, completion toggle, and deletion

๐Ÿ“ฑ Responsive & Accessible UI

  • Built with Tailwind CSS and ARIA support
  • Fully responsive: Desktop, Tablet, and Mobile views
  • Keyboard navigation + dark mode planned

๐Ÿš€ Deployment

๐Ÿงช Local with Docker (optional)

docker-compose up --build

Ensure MongoDB is running or use MongoDB Atlas in your .env.

Environment Variables

Backend (backend/config.env):

PORT=5000
MONGODB_URI=mongodb://localhost:27017/taskmaster
JWT_SECRET=your-secure-secret
NODE_ENV=development

Frontend (frontend/.env):

VITE_APP_API_URL=http://localhost:5000/api

๐Ÿงช Testing & QA

Backend

cd backend
npm test

Frontend

cd frontend
npm test

API testing recommended via Postman or Insomnia.


๐Ÿงฑ Production Checklist

โœ… Environment files configured โœ… Use production DB (e.g., MongoDB Atlas) โœ… Set secure JWT secret โœ… Configure CORS origin restrictions โœ… Enable HTTPS โœ… Use .dockerignore to reduce image size โœ… Lint, build, and test before deploy


๐Ÿ”ฎ Roadmap

Feature Status
Recurring Tasks ๐Ÿ”œ Planned
Subtasks ๐Ÿ”œ Planned
Push Notifications ๐Ÿ”œ Planned
PWA / Offline Mode ๐Ÿ”œ Planned
Mobile App ๐Ÿ”œ Planned

๐Ÿ“Š Project Status

Module Status
Backend โœ… Complete
Frontend โœ… Complete
Testing ๐ŸŸก Partial
Deployment ๐ŸŸข Ready

Built with โค๏ธ using the MERN stack Organize your life. One task at a time.

About

A modern, full-featured ๐Ÿงฉ MERN stack task manager with JWT auth, smart filtering, and responsive UI built using React, Node.js, Express, and MongoDB ๐Ÿ’ผโœ…

Topics

Resources

Stars

Watchers

Forks