Skip to content

About

A simple full-stack Task Manager built for a university educational project. It demonstrates CRUD operations, REST API design, SQLite persistence, search, filters, sorting, validation, error handling, loading states, and responsive UI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager Practice Project

This is a simple full-stack Task Manager web application for my university practice project. It lets users create, view, update, delete, search, filter, and sort tasks.

Tech Stack

  • Frontend: React + Vite
  • Backend: Node.js + Express
  • Database: SQLite
  • API style: REST

Project Structure

.
|-- backend
|   |-- db
|   |   |-- database.js
|   |   |-- schema.sql
|   |   `-- seed.sql
|   |-- middleware
|   |   `-- errorHandler.js
|   |-- routes
|   |   `-- tasks.js
|   |-- package.json
|   `-- server.js
|-- frontend
|   |-- src
|   |   |-- App.jsx
|   |   |-- main.jsx
|   |   `-- styles.css
|   |-- index.html
|   |-- package.json
|   `-- vite.config.js
|-- package.json
`-- README.md

Setup Instructions

Make sure Node.js and npm are installed first:

node -v
npm -v

Install all dependencies from the project root:

npm run install:all

Initialize the SQLite database and insert sample data:

npm run init-db --prefix backend

Run both backend and frontend in development mode:

npm run dev

On Windows PowerShell, if npm is blocked by execution policy, use npm.cmd:

npm.cmd run install:all
npm.cmd run init-db --prefix backend
npm.cmd run dev

Open the frontend:

http://localhost:5173

The backend runs at:

http://localhost:5000

How a Supervisor Can Run the Project

After you push the project to GitHub, your supervisor can clone it and run it locally:

git clone https://github.com/YOUR_USERNAME/task-manager-practice.git
cd task-manager-practice
npm run install:all
npm run init-db --prefix backend
npm run dev

Then open:

http://localhost:5173

Replace YOUR_USERNAME and task-manager-practice with your real GitHub username and repository name.

On Windows PowerShell, your supervisor can also use npm.cmd instead of npm.

Backend Only

cd backend
npm install
npm run init-db
npm run dev

Frontend Only

cd frontend
npm install
npm run dev

API Endpoints

Method Endpoint Description
GET /tasks Get all tasks
GET /tasks/:id Get one task
POST /tasks Create a task
PUT /tasks/:id Update a task
DELETE /tasks/:id Delete a task

Query Parameters

GET /tasks supports:

  • search: search by task title
  • status: Pending, In Progress, or Completed
  • priority: Low, Medium, or High
  • sort: due_asc, due_desc, created_asc, or created_desc

Example:

http://localhost:5000/tasks?search=project&status=Pending&priority=High&sort=due_asc

Database Initialization

The schema is located at:

backend/db/schema.sql

Sample test data is located at:

backend/db/seed.sql

Running npm run init-db --prefix backend creates:

backend/db/tasks.sqlite

Features

  • Add, view, edit, and delete tasks
  • Styled confirmation modal before deleting
  • One-click mark as completed
  • Search by title
  • Filter by status and priority
  • Clear all filters with one click
  • Sort by due date
  • Dashboard counters for total, pending, in-progress, completed, and high-priority tasks
  • Color-coded priorities
  • Overdue and due-soon labels
  • Empty state when no tasks exist
  • Responsive desktop and mobile layout
  • Success and error notifications

What I Learned

  • How to connect a React frontend to an Express backend.
  • How CRUD operations work with a REST API.
  • How to store task data in a SQLite database.
  • How to add search, filters, sorting, validation, and loading states.

Demo Checklist

For a short presentation, demonstrate these actions:

  1. Add a new task with title, priority, status, and due date.
  2. Search for the task by title.
  3. Filter tasks by status and priority.
  4. Sort tasks by due date.
  5. Edit the task.
  6. Mark the task as completed with one click.
  7. Delete a task and show the confirmation modal.
  8. Point out that the data persists in SQLite after refreshing the page.

About

A simple full-stack Task Manager built for a university educational project. It demonstrates CRUD operations, REST API design, SQLite persistence, search, filters, sorting, validation, error handling, loading states, and responsive UI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages