Skip to content
zNxkiPublic

About

Full-Stack Task Manager (React)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•     β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•
   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•      β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•—      β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘
   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•—     β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
   β•šβ•β•   β•šβ•β•  β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•     β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•

// MISSION CONTROL β€” Full-Stack Task Manager

TypeScript React Node.js Express SQLite Vite License


A cyberpunk-themed full-stack task manager built with a clean separation between backend and frontend. TypeScript end-to-end, SQLite persistence, and a dark futuristic UI inspired by mission control interfaces.

✦ Features

  • Priority levels β€” Low / Medium / High / Critical with animated visual indicators
  • Status tracking β€” cycle tasks through Standby β†’ Active β†’ Complete
  • Tags β€” attach multiple labels to any task for quick filtering
  • Due dates β€” overdue detection with visual warnings
  • Live stats bar β€” total, pending, active, done and mission progress bar
  • Real-time clock β€” system status header with live timestamp
  • Persistent storage β€” SQLite database with WAL mode; data survives restarts
  • Seed data β€” four sample tasks auto-inserted on first run
  • Cyberpunk UI β€” scanline overlay, noise texture, clip-path geometry, Orbitron/Rajdhani fonts

✦ Tech Stack

Layer Technology
Frontend React 18, TSX, Vite 5, CSS custom properties
Backend Node.js 20, Express 4, TypeScript 5
Database SQLite via better-sqlite3 (WAL mode, FK enforcement)
Fonts Orbitron Β· Rajdhani Β· Share Tech Mono (Google Fonts)
Build Vite (frontend) Β· tsc + ts-node-dev (backend)

✦ Project Structure

task-os/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ index.ts        # Express app β€” port 3000
β”‚   β”‚   β”œβ”€β”€ routes/routes.ts       # REST API route handlers
β”‚   β”‚   β”œβ”€β”€ storage/storage.ts        # SQLite layer (prepared statements + transactions)
β”‚   β”‚   └── types/types.ts        # Shared TypeScript interfaces
β”‚   β”œβ”€β”€ data/               # Auto-created β€” tasks.db lives here
β”‚   β”œβ”€β”€ package.json
β”‚   └── tsconfig.json
β”‚
└── frontend/
    β”œβ”€β”€ public/
    β”‚   └── favicon.ico     # Cyberpunk "T" icon (multi-resolution)
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ App.tsx          # Root component, state, data fetching
    β”‚   β”œβ”€β”€ main.tsx         # React entry point
    β”‚   β”œβ”€β”€ index.css        # Global dark theme + all component styles
    β”‚   β”œβ”€β”€ types/types.ts         # Shared types (mirrored from backend)
    β”‚   β”œβ”€β”€ api/
    β”‚   β”‚   └── client.ts    # Typed fetch wrapper for all API calls
    β”‚   └── components/
    β”‚       β”œβ”€β”€ StatsBar.tsx  # Mission progress + counters
    β”‚       β”œβ”€β”€ TodoCard.tsx  # Individual task card
    β”‚       └── TodoForm.tsx  # New task modal
    β”œβ”€β”€ index.html
    β”œβ”€β”€ vite.config.ts       # Dev proxy: /api β†’ localhost:3000
    β”œβ”€β”€ package.json
    └── tsconfig.json

✦ Quick Start

Prerequisites

  • Node.js β‰₯ 18
  • npm β‰₯ 9

1 β€” Clone

git clone https://github.com/zNxki/task-os.git
cd task-os

2 β€” Backend

cd backend
npm install
npm run dev

The server starts on http://localhost:3000.
On first run, backend/data/tasks.db is created and seeded automatically.

⚑ TASK-OS Backend running on http://localhost:3000
πŸ—„οΈ  SQLite DB β†’ .../backend/data/tasks.db
   ↳ Seeded with sample data

3 β€” Frontend

Open a second terminal:

cd frontend
npm install
npm run dev

Open http://localhost:5173 in your browser.

The Vite dev server proxies all /api/* requests to the backend β€” no CORS configuration needed during development.

✦ API Reference

Base URL: http://localhost:3000

Method Endpoint Description
GET /api/todos List all tasks (newest first)
GET /api/todos/stats Aggregate counters
GET /api/todos/:id Single task by ID
POST /api/todos Create a new task
PATCH /api/todos/:id Partial update (status, priority, tags…)
DELETE /api/todos/:id Delete a task
GET /health Health check

Create task β€” request body

{
  "title": "Hack the mainframe",          // required
  "description": "Full perimeter scan",   // optional
  "priority": "critical",                 // low | medium | high | critical
  "dueDate": "2025-12-31",               // optional ISO date
  "tags": ["network", "stealth"]          // optional array
}

Responses

All endpoints return a consistent envelope:

{ "success": true, "data": { ... } }          // 200 / 201
{ "success": false, "error": "Not found" }    // 4xx

Example β€” curl

# Create
curl -s -X POST http://localhost:3000/api/todos \
  -H "Content-Type: application/json" \
  -d '{"title":"Calibrate targeting system","priority":"high","tags":["hardware"]}'

# Update status
curl -s -X PATCH http://localhost:3000/api/todos/<id> \
  -H "Content-Type: application/json" \
  -d '{"status":"in-progress"}'

# Stats
curl -s http://localhost:3000/api/todos/stats | jq .

✦ Data Model

type Priority = 'low' | 'medium' | 'high' | 'critical';
type Status   = 'pending' | 'in-progress' | 'done';

interface Todo {
  id:           string;    // UUID v4
  title:        string;
  description?: string;
  status:       Status;
  priority:     Priority;
  createdAt:    string;    // ISO 8601
  updatedAt:    string;    // ISO 8601
  dueDate?:     string;    // ISO 8601 date
  tags:         string[];
}

SQLite schema

CREATE TABLE todos (
  id          TEXT PRIMARY KEY,
  title       TEXT NOT NULL,
  description TEXT,
  status      TEXT NOT NULL DEFAULT 'pending',
  priority    TEXT NOT NULL DEFAULT 'medium',
  due_date    TEXT,
  created_at  TEXT NOT NULL,
  updated_at  TEXT NOT NULL
);

CREATE TABLE tags (
  todo_id TEXT NOT NULL REFERENCES todos(id) ON DELETE CASCADE,
  tag     TEXT NOT NULL,
  PRIMARY KEY (todo_id, tag)
);

✦ Available Scripts

Backend

Command Description
npm run dev Start with ts-node-dev (hot reload)
npm run build Compile TypeScript to dist/
npm start Run compiled output

Frontend

Command Description
npm run dev Vite dev server with HMR
npm run build Production build to dist/
npm run preview Preview production build locally

✦ Production Build

# Backend
cd backend && npm run build
node dist/index.js

# Frontend
cd frontend && npm run build
# Serve the dist/ folder with any static host (nginx, Caddy, etc.)
# Point /api requests to the backend process

✦ Roadmap

  • Replace in-process SQLite with a networked DB (PostgreSQL / Turso)
  • JWT authentication
  • Kanban board view with drag-and-drop
  • Due-date notifications (web push)
  • Docker Compose for one-command deployment
  • Dark / light theme toggle
  • Unit tests (Vitest + Supertest)

✦ License

MIT β€” see LICENSE for details.


About

Full-Stack Task Manager (React)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages