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.
- Frontend: React + Vite
- Backend: Node.js + Express
- Database: SQLite
- API style: REST
.
|-- 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
Make sure Node.js and npm are installed first:
node -v
npm -vInstall all dependencies from the project root:
npm run install:allInitialize the SQLite database and insert sample data:
npm run init-db --prefix backendRun both backend and frontend in development mode:
npm run devOn 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 devOpen the frontend:
http://localhost:5173
The backend runs at:
http://localhost:5000
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 devThen 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.
cd backend
npm install
npm run init-db
npm run devcd frontend
npm install
npm run dev| 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 |
GET /tasks supports:
search: search by task titlestatus:Pending,In Progress, orCompletedpriority:Low,Medium, orHighsort:due_asc,due_desc,created_asc, orcreated_desc
Example:
http://localhost:5000/tasks?search=project&status=Pending&priority=High&sort=due_asc
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
- 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
- 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.
For a short presentation, demonstrate these actions:
- Add a new task with title, priority, status, and due date.
- Search for the task by title.
- Filter tasks by status and priority.
- Sort tasks by due date.
- Edit the task.
- Mark the task as completed with one click.
- Delete a task and show the confirmation modal.
- Point out that the data persists in SQLite after refreshing the page.