task-manager-api

Task Manager

A Node.js/Express-based task management system with user authentication, admin controls, and a clean service/controller architecture.

Features

Project Structure

task.manager/
  |-- controllers/   # HTTP request/response logic
  |-- services/      # Business logic and DB operations
  |-- routes/        # Express route definitions
  |-- middleware/    # Auth and other middleware
  |-- model/         # Sequelize models
  |-- config/        # DB and app config
  |-- views/         # Pug templates for rendering
  |-- index.js       # App entry point
  |-- package.json   # Dependencies

Setup

  1. Install dependencies:
    npm install
    
  2. Configure environment:
    • Copy .env.example to .env and set your environment variables (DB, session secret, etc.)
  3. Run the app:
    npm start
    

    The server will run on the port specified in your .env file.

Usage

Middleware

Architecture

License

MIT