Build. Focus. Execute.
TaskForge is a premium Neo-Brutalism 2.0 productivity operating system for students, developers, startup founders, creators, freelancers, and ambitious professionals.
- React + Vite + Framer Motion
- Node.js + Express.js
- MongoDB + Mongoose
- JWT authentication
- Vercel-ready serverless API adapter
cp .env.example .env
npm install
npm run devMONGODB_URI- MongoDB connection string. Required locally and on Vercel.JWT_SECRET- long random secret for signing auth tokens. Required locally and on Vercel.CLIENT_ORIGIN- optional comma-separated list of allowed frontend origins.PORT- local API port, defaults to5000.
Vercel does not run a long-lived Express server from server/src/index.js for frontend deployments. It expects static assets in dist/ and serverless functions in api/. This project includes:
vercel.jsonto build Vite, servedist/, route/api/*to the serverless adapter, and route frontend paths toindex.html.api/index.jsto adapt the Express app to a Vercel serverless function.server/src/app.jsso the Express app can be imported by Vercel without callinglisten().
In the Vercel dashboard, add MONGODB_URI and JWT_SECRET before deploying. If these are missing, API routes intentionally fail fast instead of running without a database or auth secret.
POST /api/auth/signupPOST /api/auth/signinGET /api/tasksPOST /api/tasksPATCH /api/tasks/:idDELETE /api/tasks/:idPOST /api/tasks/:id/duplicateGET /api/categoriesPOST /api/categoriesPATCH /api/categories/:idDELETE /api/categories/:idGET /api/analytics/summary
- Create a MongoDB Atlas cluster and copy the connection URI.
- In Vercel project settings, add
MONGODB_URIandJWT_SECRET. - Keep the framework preset as Vite or use the included
vercel.json. - Deploy. Vercel runs
npm run build, servesdist/, and maps/api/*toapi/index.js. - Confirm
/api/healthreturns{ "ok": true, "name": "TaskForge" }.
- The frontend currently includes a polished local demo workspace and auth UI; connect it to
/api/auth/*and/api/tasksfor persisted multi-user data. - Protected API routes require
Authorization: Bearer <token>. - The MongoDB models include Users, Tasks, Categories, and Activity Logs.