Collector.shop
A peer-to-peer marketplace for collectibles: Laravel API, React front end and a complete CI/CD pipeline.
The problem
Let individuals buy and sell vintage items and collectibles, with listing moderation and a commission taken by the platform.
Solution
A monolith organised as a monorepo: a Laravel 12 API (Laravel Passport authentication, PostgreSQL) and a React 19 + TypeScript SPA (Vite, Tailwind, TanStack Query). Front and back end are served from the same origin, in Docker containers on a VPS, behind a Caddy proxy with automatic SSL.
Features
- Profiles and roles: buyer, seller and administrator (one account can be both buyer and seller), purchase and sales history, member ratings, interests.
- Catalogue and listings: public catalogue, listings published by sellers, moderation workflow before publication.
- Checkout: card payment (simulated), 5% commission recorded when the payment is confirmed.
- Back office: category management and moderation.
Quality and DevOps
Every push or pull request on main triggers a GitHub Actions pipeline: build, tests (Pest, Vitest, Playwright), static analysis (Larastan, ESLint), SAST, DAST and SCA security testing, mutation testing (Infection), Lighthouse audit, Docker image build and scan, publication to Docker Hub, then deployment. Monitoring relies on Prometheus and Grafana.