This repository contains a simple Task Manager with a Node.js backend and a static HTML frontend. The backend provides REST APIs for authentication, users, tasks, and projects, and the frontend is a multi‑page Bootstrap UI that consumes those endpoints.
task-m-b— Node.js/Express backend (MongoDB + Mongoose)task-m-f— Static frontend (HTML/CSS/JS)
- User registration and login
- Admin pages for users and projects
- Task CRUD with user assignment
- Optional project linking for tasks
- Frontend compatible API responses
- Backend:
cd task-m-bnpm install- create
.envwith:MONGODB_URIJWT_SECRET
npm run dev
- Frontend:
- open
task-m-f/index.htmlin the browser - set the API base URL to
http://localhost:3000in Settings if needed
- open
Default Backend URL: http://localhost:3000
- Admin navigation (Users/Projects) appears only when the logged‑in user has
role: "admin". - The frontend stores session data in localStorage and in
window.nameto work when opened viafile://.