Skip to content

rcadavos/midman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Swap Guard

Swap Guard is a peer-to-peer trading assistant: two parties swap goods or gaming accounts while a designated middle (escrow) stays in the same conversation. The stack is Angular (SPA) and Laravel (API) with Laravel Sanctum token authentication.

Project layout

Folder Role
frontend/ Angular 19 app — landing page, auth, deal rooms, tri-party chat
backend/ Laravel 13 API — users, conversations, messages

Prerequisites

  • PHP 8.3+, Composer, and SQLite (default) or MySQL/PostgreSQL
  • Node.js 18+ (for Angular)

Backend (Laravel)

cd backend
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
php artisan serve

The API listens at http://localhost:8000. Routes are under /api (e.g. POST /api/login, GET /api/conversations).

Seeded demo users (password: password)

Email Role
escrow@swapguard.test Middle (escrow)
alex@swapguard.test Party
jordan@swapguard.test Party

Create additional accounts via Register in the Angular app. New swaps assign the escrow user automatically (is_middleman in the database).

Frontend (Angular)

cd frontend
npm install
npm start

Open http://localhost:4200. The dev build points at http://localhost:8000/api (see src/environments/environment.ts). Production builds replace this with environment.prod.ts (set apiUrl to your deployed API).

Features

  • Landing page — hero, how it works, features, trust, categories, testimonials, CTA, footer with sitemap, trending topics, and copyright
  • Tri-party messaging — each deal ties party A, party B, and the middle; all messages appear in one thread
  • Shield branding — SVG icon at frontend/public/shield-icon.svg (favicon + UI)

Legal note

Swap Guard is a messaging and coordination tool. It does not hold funds or items; configure your own operational and legal processes for real trades.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors