Task-Management-api

Task Management API

A RESTful API for managing tasks built with Node.js, Express, and MongoDB.

What I Learned ๐ŸŽ“

During this Learnathon, I gained experience with:

Project Structure ๐Ÿ“

task-management-api/
  โ”œโ”€โ”€ config/         # Database configuration
  โ”œโ”€โ”€ models/         # Database models
  โ”œโ”€โ”€ routes/         # API routes
  โ”œโ”€โ”€ .env           # Environment variables
  โ”œโ”€โ”€ server.js      # Main application file
  โ””โ”€โ”€ vercel.json    # Vercel deployment config

How It Works ๐Ÿ› ๏ธ

API Endpoints ๐Ÿ”š

Setup Instructions ๐Ÿš€

  1. Clone the repository:
    git clone [your-repo-link]
    cd task-management-api
    
  2. Install dependencies:
    npm install
    
  3. Create .env file:
    MONGODB_URI=your_mongodb_connection_string
    PORT=3000
    
  4. Run the server:
    # Development
    npm run dev
       
    # Production
    npm start
    

[Your API Link Here]

Testing ๐Ÿงช

Use Postman or browser to test the API endpoints:

  1. Create a new task (POST)
  2. Get all tasks (GET)
  3. Get specific task (GET)
  4. Update task (PUT)
  5. Delete task (DELETE)