Skip to content

MirajMalik/Task-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager

A simple CRUD application built with Node.js, Express, and EJS to practice handling forms, file system operations, and server-side routing.

Features

  • Create Tasks: Save task details as .txt files in the backend.
  • Read Tasks: View a list of all saved tasks on the dashboard.
  • View Details: Read the full content of individual task files.
  • Edit Tasks: Rename existing task files.
  • Delete Tasks: Remove task files with a confirmation success page.

Tech Stack

  • Backend: Node.js, Express.js
  • Templating: EJS
  • Styling: Tailwind CSS
  • Storage: Local File System (fs module)

Project Structure

.
├── files/               # Directory where tasks are saved as .txt
├── public/              # Static assets
├── views/               # EJS templates
│   ├── index.ejs        # Dashboard 
│   ├── show.ejs         # Individual task view
│   ├── edit.ejs         # Rename file form
│   └── delete.ejs       # Success message view
├── index.js             # server & routes
└── package.json         # Project dependencies


## Key Learnings 
-Asynchronous Flow: Handling fs.readdir and fs.readFile using callbacks.

-EJS Integration: Passing data from Express routes to the frontend.

-HTTP Methods: Difference between GET and POST for creating and deleting data.

About

A Node.js and Express task manager using the local file system for persistent storage. Features EJS templating, dynamic routing and full CRUD operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors