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.
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
- 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
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.
Requirements: Node.js 20+, MySQL 8, a Stripe test account
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 ordercd server
cp .env.example .env # DB_*, JWT_SECRET, STRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRET
npm install
npm run dev # http://localhost:3000cd client
npm install
npm run devAbdellah Sheikh — abdellahsheikh.dev · LinkedIn