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 optional due dates (overdue tasks are highlighted) and tags, search and filters by priority, status and tag
- Focus Timer: Pomodoro sessions of 25 minutes with 5-minute breaks and a 15-minute break after every fourth session, optionally linked to a task, and kept when you reload the page
- Profile: update your name, bio and avatar, and change your password
- Works on phones: on small screens, the sidebar becomes a menu
- 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:all
Planning 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/.env
The 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 dev
This 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 automated tests (the backend, the Focus Timer and the release and merge scripts) |
npm run lint |
Check the code for likely bugs with ESLint |
npm run seed |
Populate the database with a demo user and sample tasks (use npm run seed -- --allow-remote for remote databases) |
Running the tests: the API tests need MongoDB running locally, the same as npm run dev. They use a separate taskflow_test database and delete it when they finish, so your own data is never touched.
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/
β β βββ server.js Entry point: connects to MongoDB and starts the server
β β βββ app.js The Express app: middleware and routes
β β βββ 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
β βββ test/ Automated tests for the helpers and the task API
β βββ .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, form validation, date helpers
β βββ 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=, ?tag=, ?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.
Every response includes standard security headers, like X-Content-Type-Options: nosniff and X-Frame-Options, set by Helmet.
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. These are reserved for people making their first few open-source contributions. If you've done several already, pick a help wanted issue instead.
- Follow the contributing guide: it covers setup, branches, commit messages, testing and opening a pull request, step by step.
- Give your pull request a Conventional Commits title and fill in "What does this PR do?": approved pull requests are merged automatically, and those become the commit on
main. - Questions? Ask in Discussions.
Please follow our Code of Conduct. Found a security problem? See SECURITY.md. Changes are listed in the changelog.
If TaskFlow helped you learn something or you enjoyed contributing, a β on the repo helps other first-time contributors find it.
MIT Β© 2026 KEX-03





