GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hammadhttps/mern-task-manager

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
backend
backend
 
 
frontend
frontend
 
 
.gitignore
.gitignore
 
 
Readme.md
Readme.md
 
 

Repository files navigation

MERN Task Manager

A full-stack Task Manager application built with the MERN stack (MongoDB, Express, React, Node.js). Users can register, log in, and manage their personal tasks with a modern, responsive UI.

Vite-React-TS-07-19-2025_05_44_AM

Features

  • User registration and authentication (JWT + HTTP-only cookies)
  • Secure login/logout
  • Create, read, update, and delete tasks
  • User-specific task lists
  • Responsive, clean React frontend
  • Protected routes for authenticated users

Tech Stack

  • Frontend: React, TypeScript, Vite, React Router, React Toastify
  • Backend: Node.js, Express, MongoDB, Mongoose, JWT, bcryptjs
  • Styling: CSS Modules

Getting Started

Prerequisites

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

Environment Variables

Create a .env file in the backend/ directory:

PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
JWT_EXPIRES_IN=1h

Installation

1. Clone the repository

git clone https://github.com/yourusername/mern-task-manager.git
cd mern-task-manager

2. Install backend dependencies

cd backend
npm install

3. Install frontend dependencies

cd ../frontend
npm install

Running the Application

1. Start the backend server

cd backend
npm run dev

2. Start the frontend development server

cd ../frontend
npm run dev
  • The frontend will be available at http://localhost:5173
  • The backend API runs at http://localhost:5000

API Endpoints

  • POST /api/auth/register - Register a new user
  • POST /api/auth/login - Login user
  • GET /api/auth/logout - Logout user
  • GET /api/auth/profile - Get current user profile (protected)
  • GET /api/tasks - Get all tasks for logged-in user (protected)
  • POST /api/tasks - Create a new task (protected)
  • PUT /api/tasks/:id - Update a task (protected)
  • DELETE /api/tasks/:id - Delete a task (protected)

Folder Structure

mern-task-manager/
  backend/
    controllers/
    middleware/
    models/
    routes/
    config/
    .env
    index.js
    package.json
  frontend/
    src/
      components/
      context/
      css/
      pages/
      App.tsx
      main.tsx
    package.json
    vite.config.ts

About

No description or website provided.

Topics

authenticationbackendcssfront-end-developmentfullstack-developmentmern-stackmongodbmongodb-atlasnodejs

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.