Skip to content

About

Freelance marketplace with escrow payments and a milestone-based project lifecycle. React 19 · Express 5 · MySQL · Socket.io.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrustFlow

A freelance marketplace built on a zero-trust model: clients fund work into escrow, freelancers deliver milestone by milestone, and money is released only after each milestone is approved.

React TypeScript Tailwind CSS Express MySQL Socket.io Stripe

How It Works

Client posts project ─▶ Freelancers bid ─▶ Client accepts a bid
        │
        ▼
Milestone plan agreed ─▶ Client funds milestone (Stripe → escrow)
        │
        ▼
Freelancer submits work ─▶ Client approves or requests revision
        │
        ▼
Funds released to freelancer ─▶ Next milestone unlocks ─▶ Mutual reviews

Features

  • Three roles — client, freelancer and admin, each with its own dashboard and layout
  • Bidding — freelancers bid on open projects; accepting a bid locks the project for planning
  • Milestone plans — work is split into sequential milestones; each one starts only after the previous one is fully approved
  • Escrow payments — milestones are funded through Stripe payment intents and released on approval, with every movement recorded in a transactions ledger
  • Revisions and attachments — submissions carry files stored in the database, and clients can request changes
  • Real-time notifications — Socket.io pushes updates on bids, milestones and payments
  • Reviews — both sides rate each other when a project completes
  • Security — JWT authentication, bcrypt password hashing, role checks and centralized error handling

Architecture

TrustFlow-Platform/
├── client/                 # React 19 + Vite + Tailwind CSS
│   └── src/
│       ├── pages/          # client/ · freelancer/ · admin/ · shared/
│       ├── services/       # API layer (axios)
│       ├── context/ hooks/ components/ types/
├── server/                 # Express 5 REST API + Socket.io
│   ├── routes/             # auth, projects, bids, plans, milestones, payments, reviews, notifications, admin
│   ├── models/             # User, Project, Bid, ProjectPlan, Milestone, Payment, Transaction, Review…
│   ├── middleware/         # auth, errorHandler, logger (Winston)
│   └── migrations/         # incremental SQL migrations (escrow, plans, constraints…)
├── guven_akisi.sql         # base database schema
└── docs/ARCHITECTURE.md    # full design and engineering report

The full design rationale — zero-trust escrow, the milestone state machine, file storage strategy and the database model — is documented in docs/ARCHITECTURE.md.

Getting Started

Requirements: Node.js 20+, MySQL 8, a Stripe test account

1. Database

mysql -u root -p -e "CREATE DATABASE trustflow"
mysql -u root -p trustflow < guven_akisi.sql
# then apply the files in server/migrations/ in date order

2. API server

cd server
cp .env.example .env    # DB_*, JWT_SECRET, STRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRET
npm install
npm run dev             # http://localhost:3000

3. Web client

cd client
npm install
npm run dev

Author

Abdellah Sheikh — abdellahsheikh.dev · LinkedIn

About

Freelance marketplace with escrow payments and a milestone-based project lifecycle. React 19 · Express 5 · MySQL · Socket.io.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages