TaskNexus Server is the backend API for the TaskNexus freelancing platform.
It is built using Node.js, Express.js, and MongoDB following the MVC architecture.
TaskNexusServer/
│
├── src/
│ ├── config/ # Database configuration and environment setup
│ ├── controllers/ # Business logic for handling requests
│ ├── models/ # Mongoose schemas & database models
│ ├── routes/ # API route definitions
│
├── .env # Environment variables
├── index.js # Entry point of the server
├── package.json # Dependencies & scripts
├── vercel.json # Vercel deployment configuration
git clone https://github.com/rafiqmia65/task-nexus-server.gitnpm installCreate a .env file in the root directory and add:
PORT=3000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secretnpm run devnpm startPOST /tasks→ Create a new taskGET /tasks→ Get all tasksGET /tasks/latest→ Get latest tasksGET /tasks/:id→ Get task by IDPUT /tasks/:id→ Update taskDELETE /tasks/:id→ Delete taskPATCH /tasks/:id/bid→ Increment bid count
POST /bids→ Place a bidGET /bids/:taskId→ Get all bids for a task
This server is deployed on Vercel.
The vercel.json ensures proper configuration for serverless functions.
- Backend Framework: Node.js, Express.js
- Database: MongoDB
- Deployment: Vercel
- Architecture: MVC
This project is licensed under the MIT License.