Marketplace development has a trap: the part that looks hard (the listings, the sign-up, the search) is the easy part. The hard part is what nobody sees. Money that comes in from one side and has to go out split two ways, different access rules for each type of user, a payment notice that arrives out of order and must not release anything too early.
I have been a full stack developer for more than seven years, and since June 2026 I have been working on XConstrução, a construction SaaS with two products in the same codebase: a marketplace that connects people who have a building project with the contractors who do the work, with progress measurement and split payments, and a project management system for the contractor. The examples on this page come from it.

Before The Code: Does The Marketplace Need To Exist?
A marketplace only works when both sides are active. Before building, answer three questions:
- Do you already have one side? If you start with suppliers or customers already on board, your odds are much better than starting from zero on both.
- What is the niche? A generic marketplace competes with giants. A vertical one (construction, one type of service, one B2B sector) solves a problem they don't.
- What keeps the deal inside the platform? If buyer and supplier can close the deal elsewhere after the first contact, the platform has to offer something they wouldn't have on their own.
In XConstrução, the answer to the third question is management: contractors use the system to run their own projects, from schedule to finances, and the marketplace comes with it.
What a Custom Marketplace Needs
Both Sides, With Separate Rules
Each type of user has its own area: in XConstrução, the client, the contractor, project management and admin, each with its own routes and permissions. The client posts the project; the contractor finds open projects in the listings, filters them and applies. A team member invited by a company only sees the projects shared with them, and I reviewed the 25 queries that filter by company before opening team access.
Split Payments
This is the heaviest part. I compared six payment gateways before choosing, looking at how each handles splits and what it costs to run. I went with Asaas, a Brazilian payment gateway that splits the payment between the platform and the contractor on its own side, with one sub-account per company. That means the money never sits in the platform's account waiting to be passed on by hand.
Double-checking Every Payment
The gateway sends a webhook when a payment changes status. The webhook is validated with a token, and the token is never written to the logs. Because a webhook can get lost or arrive out of order, a reconciliation job compares what the gateway says with what the database has. If production starts up pointing at the gateway's test environment, the system warns about it at boot.
Plans And Free Trial
A marketplace usually has more than one revenue stream. In XConstrução, subscribing to project management never changes the marketplace plan, and the other way around. The 90-day free trial works as a special subscription that falls back to the free plan on its own when it expires, without losing any project.
Security In a System That Handles Other People's Money
- Session in a protected cookie, with short-lived access and automatic renewal.
- Login with attempt limits and bot protection.
- Two-factor authentication for the admin area.
- Photos and documents in private storage, served through signed, temporary links.
- Zod validation on every write input, before anything touches the database.
Tests And Process
A marketplace grows fast. XConstrução already has 92 screens and 274 API routes. To keep it from breaking with every change, there are 547 Playwright tests: some call the API and check what was saved in the database, others run in the browser. A guard aborts the suite if the connection looks like production, and a coverage radar flags any write route that still has no test.
Every delivery starts from a written journey, with scope, risks and a done checklist. There are 106 documented journeys so far.
Where The Project Stands, Honestly
The project management module is in user acceptance testing, and payments still run in the Asaas test environment. Switching to real billing depends on finishing that testing and on the client's sign-off. I say this because a marketplace is a long project, and anyone promising a finished marketplace in a few weeks is leaving the hard part out.
How To Start
To see how I work on systems of this size, check custom web application development, or tell me about your idea.