A clean, beginner-friendly full-stack task manager built with MongoDB, Express, React and Node, made for learning and first open-source contributions.
π taskflow-plum-one.vercel.app: sign up with any email (it doesn't need to be real) and try it out.
β³ The first load can take up to a minute. The API runs on a free hosting plan that goes to sleep when nobody is using it, and waking up takes a moment. After that it's fast.
- Sign up and log in with secure password hashing and JWT (token-based) authentication
- Dashboard with task counts by status and your most recent tasks
- Tasks: create, edit and delete, with search and filters by priority and status
- Profile: update your name, bio and avatar, and change your password
- Protected pages: logged-out visitors are sent to the login page
- Each user only sees their own tasks, enforced by the API
- Clean, readable code split into small files, with a contributing guide that explains where everything lives
| Part | Technology |
|---|---|
| Frontend | React 18, React Router 7, Tailwind CSS 4, Axios, built with Vite |
| Backend | Node.js, Express 4 |
| Database | MongoDB with Mongoose |
| Auth | JSON Web Tokens (jsonwebtoken), password hashing with bcryptjs |
| Hosting (demo) | Vercel (frontend), Render (API), MongoDB Atlas (database) |
- Node.js 22.12 or newer (24 recommended). Check with
node --version. - Git
- MongoDB, either one of:
- Local: install MongoDB Community Server. Nothing else to configure.
- Cloud (free): create a cluster on MongoDB Atlas and copy its connection string (see step 1 of the deployment guide).
git clone https://github.com/KEX-03/taskflow.git
cd taskflow
npm run install:allPlanning to contribute? Fork the repository first and clone your fork instead (see CONTRIBUTING.md).
# macOS / Linux / Git Bash
cp server/.env.example server/.env
cp client/.env.example client/.env# Windows PowerShell
Copy-Item server/.env.example server/.env
Copy-Item client/.env.example client/.envThe defaults work with a local MongoDB. Using Atlas? Open server/.env and replace MONGO_URI with your connection string. Every setting is explained in the .env.example files.
npm run devThis starts both parts together:
- API at http://localhost:5000 (health check: http://localhost:5000/api/v1/health)
- App at http://localhost:3000: open it and sign up for an account
| Command (from the repository root) | What it does |
|---|---|
npm run install:all |
Install dependencies for the root, server and client |
npm run dev |
Start the API and the app together |
npm run dev:server |
Start only the API |
npm run dev:client |
Start only the app |
npm run build |
Build the app for production (into client/dist/) |
npm test |
Run the backend's automated tests |
npm run seed |
Populate the database with a demo user and sample tasks (use npm run seed -- --allow-remote for remote databases) |
Something not working? The server prints a β message explaining what's wrong, for example a missing setting or MongoDB not running.
taskflow/
βββ server/ Express REST API
β βββ src/
β β βββ app.js Entry point: middleware, routes and startup
β β βββ config/ MongoDB connection
β β βββ models/ Mongoose schemas (User, Task)
β β βββ controllers/ Request handlers: the logic for each endpoint
β β βββ routes/ Maps URLs to controllers
β β βββ middleware/ `protect`: checks the login token
β β βββ utils/ Helpers for tokens, errors and query parsing
β βββ .env.example Server settings, explained
βββ client/ React app (Vite)
β βββ src/
β β βββ App.jsx All page routes
β β βββ pages/ One file per page (Login, Dashboard, Tasks, ...)
β β βββ components/ Shared UI (Sidebar, Toast, Spinner, ...)
β β βββ context/ AuthContext: who is logged in
β β βββ utils/ Axios API client and form validation
β βββ vercel.json Lets Vercel serve every page route
β βββ .env.example Client settings, explained
βββ docs/ Architecture overview, deployment guide and images
βββ postman_collection.json Ready-made API requests for Postman
βββ package.json Helper scripts to run everything from the root
New to the code? How TaskFlow works is a five-minute tour of the request flow, login, data model and React app.
All endpoints start with /api/v1. Endpoints marked π need a login token in the header: Authorization: Bearer <token>. You get a token from signup or login. For full request and response examples, query parameters, and error schemas, see the API Reference.
| Method | Endpoint | Description | |
|---|---|---|---|
POST |
/auth/signup |
Create an account, returns a token | |
POST |
/auth/login |
Log in, returns a token | |
POST |
/auth/logout |
π | Log out (the app deletes its token) |
GET |
/me |
π | Get your profile |
PUT |
/me |
π | Update your profile or password |
GET |
/tasks |
π | List your tasks. Optional: ?search=, ?status=, ?priority=, ?page=, ?limit= |
POST |
/tasks |
π | Create a task |
GET |
/tasks/:id |
π | Get one task |
PUT |
/tasks/:id |
π | Update a task |
DELETE |
/tasks/:id |
π | Delete a task |
GET |
/health |
Check that the API is running |
Login allows 10 failed attempts and signup 10 requests per 15 minutes per IP address. After that, they return 429 Too Many Requests.
Try it in Postman: import postman_collection.json. After you run Signup or Login, the token is saved and used by every other request automatically.
TaskFlow runs on free plans of MongoDB Atlas, Render and Vercel. The deployment guide walks through every setting and environment variable.
Contributions of all sizes are welcome, especially from first-time contributors! π
- Pick an issue labelled good first issue and comment that you'd like to work on it.
- Follow the contributing guide: it covers setup, branches, commit messages, testing and opening a pull request, step by step.
- Questions? Ask in Discussions.
Please follow our Code of Conduct. Found a security problem? See SECURITY.md. Changes are listed in the changelog.
MIT Β© 2026 KEX-03





