Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ProjectHub API

A lightweight Projects + Tasks Management API, similar to a mini Jira / Trello.

Stack

  • Node.js
  • Express
  • PostgreSQL
  • Prisma ORM
  • TypeScript
  • Zod validation
  • JWT authentication
  • Pino logging
  • Swagger / OpenAPI

Features

  • User signup and login
  • JWT access tokens
  • Refresh token rotation
  • Password reset flow
  • Organizations / workspaces
  • Organization roles: Owner, Admin, Member
  • Projects
  • Tasks with status transitions
  • Comments
  • Tags
  • Audit logs
  • Invitation flow with expiration
  • Background jobs
  • Rate limiting
  • Health endpoint
  • Metrics endpoint
  • Swagger docs

Setup

npm install
docker compose up -d
npx prisma migrate dev
npx prisma generate
npx tsx prisma/seed.ts
npm run dev

API Docs

http://localhost:3000/api-docs

Health

http://localhost:3000/health

Core end-to-end flow

Edge-case checks

Enviroment variables

.env DATABASE_URL=postgresql://postgres:postgres@localhost:5432/projecthub PORT=3000 JWT_SECRET=supersecretkey123 REDIS_URL=redis://localhost:6379

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages