Skip to content

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.

Notifications You must be signed in to change notification settings

rafiqmia65/task-nexus-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 TaskNexus Server

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.


📂 Project Structure

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

⚙️ Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/rafiqmia65/task-nexus-server.git

2️⃣ Install Dependencies

npm install

3️⃣ Configure Environment Variables

Create a .env file in the root directory and add:

PORT=3000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret

4️⃣ Run the Server (Development)

npm run dev

5️⃣ Run the Server (Production)

npm start

🚀 API Endpoints

Tasks

  • POST /tasks → Create a new task
  • GET /tasks → Get all tasks
  • GET /tasks/latest → Get latest tasks
  • GET /tasks/:id → Get task by ID
  • PUT /tasks/:id → Update task
  • DELETE /tasks/:id → Delete task
  • PATCH /tasks/:id/bid → Increment bid count

Bids

  • POST /bids → Place a bid
  • GET /bids/:taskId → Get all bids for a task

📦 Deployment

This server is deployed on Vercel.
The vercel.json ensures proper configuration for serverless functions.


🛠 Tech Stack

  • Backend Framework: Node.js, Express.js
  • Database: MongoDB
  • Deployment: Vercel
  • Architecture: MVC

📜 License

This project is licensed under the MIT License.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published