<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: LiuJW</title>
    <description>The latest articles on DEV Community by LiuJW (@_014b3d88426e093c92f1d).</description>
    <link>https://dev.to/_014b3d88426e093c92f1d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4138547%2F8ca166fc-76b0-42a9-8ed0-af9ea98b01b5.png</url>
      <title>DEV Community: LiuJW</title>
      <link>https://dev.to/_014b3d88426e093c92f1d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_014b3d88426e093c92f1d"/>
    <language>en</language>
    <item>
      <title>From Zero to a B2B2C Marketplace: Building an Open-Source Project from Scratch</title>
      <dc:creator>LiuJW</dc:creator>
      <pubDate>Wed, 23 Sep 2026 02:53:22 +0000</pubDate>
      <link>https://dev.to/_014b3d88426e093c92f1d/from-zero-to-a-b2b2c-marketplace-building-an-open-source-project-from-scratch-3nl3</link>
      <guid>https://dev.to/_014b3d88426e093c92f1d/from-zero-to-a-b2b2c-marketplace-building-an-open-source-project-from-scratch-3nl3</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdvjjp53yfp7998rr5bjp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdvjjp53yfp7998rr5bjp.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
This is not a success story. It is the beginning of a project.&lt;/p&gt;

&lt;p&gt;I’m starting to build a B2B2C marketplace from scratch. The long-term goal is to open-source the core project and provide related technical and business services around it.&lt;/p&gt;

&lt;p&gt;The code is not open source yet. The project is still in its early startup and development stage. So instead of pretending that everything is already finished, I decided to document the process as I build it.&lt;/p&gt;

&lt;p&gt;Why Build a B2B2C Marketplace?&lt;br&gt;
Traditional e-commerce usually follows a relatively simple model:&lt;/p&gt;

&lt;p&gt;Platform → Inventory → Customer → Delivery&lt;/p&gt;

&lt;p&gt;But local commerce can work differently.&lt;/p&gt;

&lt;p&gt;Instead of the platform buying inventory and shipping everything itself, local merchants can publish their products, manage inventory, receive orders and fulfill them locally.&lt;/p&gt;

&lt;p&gt;The platform focuses on connecting the two sides:&lt;/p&gt;

&lt;p&gt;Consumers looking for products&lt;br&gt;
Local merchants who have products and fulfillment capabilities&lt;br&gt;
The platform that provides search, matching, transactions and infrastructure&lt;br&gt;
This creates a different architecture from a traditional single-store e-commerce system.&lt;/p&gt;

&lt;p&gt;The Basic Business Model&lt;br&gt;
The core idea is relatively simple:&lt;/p&gt;

&lt;p&gt;Customers discover products → compare stores → place orders → local merchants fulfill → customers receive their orders.&lt;/p&gt;

&lt;p&gt;The platform does not necessarily need to own the inventory. Instead, it provides the infrastructure that connects consumers and merchants.&lt;/p&gt;

&lt;p&gt;This means the system needs to understand more than just products. It also needs to understand:&lt;/p&gt;

&lt;p&gt;Products&lt;br&gt;
Stores&lt;br&gt;
Offers and prices&lt;br&gt;
Inventory&lt;br&gt;
Distance&lt;br&gt;
Delivery options&lt;br&gt;
Orders&lt;br&gt;
Payments&lt;br&gt;
After-sales service&lt;br&gt;
Four Different Ends&lt;br&gt;
One of the first architectural decisions is that this is not simply one website with different user permissions.&lt;/p&gt;

&lt;p&gt;I’m planning the platform around four major ends.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Consumer
The consumer side is where customers discover and purchase products.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Search products&lt;br&gt;
Compare prices&lt;br&gt;
Find nearby stores&lt;br&gt;
Check availability&lt;br&gt;
View delivery options&lt;br&gt;
Add products to cart&lt;br&gt;
Checkout and pay&lt;br&gt;
Track orders&lt;br&gt;
Request after-sales support&lt;br&gt;
The goal is not simply to build another product catalog. The consumer should be able to answer one practical question:&lt;/p&gt;

&lt;p&gt;Where can I buy the right product, at the right price, from a suitable store, and receive it efficiently?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Merchant
The merchant side is designed for local stores.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Store management&lt;br&gt;
Product publishing&lt;br&gt;
Inventory management&lt;br&gt;
Price management&lt;br&gt;
Order processing&lt;br&gt;
Delivery management&lt;br&gt;
Customer communication&lt;br&gt;
Sales and performance data&lt;br&gt;
The merchant should be able to use the platform as a digital sales and operations tool, rather than simply being another seller account inside an e-commerce website.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Admin
The admin side is responsible for operating the marketplace itself.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;User management&lt;br&gt;
Merchant management&lt;br&gt;
Product and category management&lt;br&gt;
Order management&lt;br&gt;
Payment and refund management&lt;br&gt;
Promotion management&lt;br&gt;
Content management&lt;br&gt;
Platform analytics&lt;br&gt;
Risk and compliance operations&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Supply / Partner
The fourth side is designed for suppliers, brands and other business partners.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This part is still being defined, but the long-term direction may include:&lt;/p&gt;

&lt;p&gt;Wholesale supply&lt;br&gt;
Product sourcing&lt;br&gt;
Brand cooperation&lt;br&gt;
Distribution&lt;br&gt;
Merchant supply services&lt;br&gt;
Technology and business services&lt;br&gt;
The purpose is to make the platform more than a consumer-facing marketplace.&lt;/p&gt;

&lt;p&gt;The Transaction Flow&lt;br&gt;
One of the first flows I am working around looks like this:&lt;/p&gt;

&lt;p&gt;Browse / Search → Product → Store / Offer → Cart → Verification → Checkout → Payment → Order → Delivery → After-sales&lt;/p&gt;

&lt;p&gt;Every step creates its own technical requirements.&lt;/p&gt;

&lt;p&gt;For example, a product cannot simply have one global price. The actual purchase decision may depend on the combination of:&lt;/p&gt;

&lt;p&gt;Product&lt;br&gt;
Store&lt;br&gt;
Current offer&lt;br&gt;
Inventory availability&lt;br&gt;
Customer location&lt;br&gt;
Delivery method&lt;br&gt;
Estimated delivery time&lt;br&gt;
This is one of the reasons I’m treating the marketplace as a platform architecture rather than a traditional online store.&lt;/p&gt;

&lt;p&gt;AI Search: More Than a Search Box&lt;br&gt;
Another direction I want to explore is AI-powered search.&lt;/p&gt;

&lt;p&gt;Traditional search answers:&lt;/p&gt;

&lt;p&gt;“Which products match this keyword?”&lt;/p&gt;

&lt;p&gt;AI search should eventually answer a more useful question:&lt;/p&gt;

&lt;p&gt;“Based on what I need, which product and which store should I consider?”&lt;/p&gt;

&lt;p&gt;The system could potentially understand factors such as:&lt;/p&gt;

&lt;p&gt;Product requirements&lt;br&gt;
Budget&lt;br&gt;
Distance&lt;br&gt;
Availability&lt;br&gt;
Delivery time&lt;br&gt;
Store rating&lt;br&gt;
Price&lt;br&gt;
Customer scenario&lt;br&gt;
The objective is not to replace the customer’s decision. It is to reduce the amount of work required to make that decision.&lt;/p&gt;

&lt;p&gt;AI Customer Service&lt;br&gt;
Customer service is another area where I want to experiment with AI.&lt;/p&gt;

&lt;p&gt;Instead of sending every question to one general chatbot, different problems can be routed to different AI service agents.&lt;/p&gt;

&lt;p&gt;Order support&lt;br&gt;
Delivery support&lt;br&gt;
Refund support&lt;br&gt;
Product support&lt;br&gt;
Account support&lt;br&gt;
Merchant support&lt;br&gt;
If an issue cannot be resolved automatically, the conversation can eventually be transferred to a human operator.&lt;/p&gt;

&lt;p&gt;The idea is to make customer service part of the platform architecture, rather than adding an AI chatbot as an isolated feature.&lt;/p&gt;

&lt;p&gt;Architecture: Start Simple, Scale Later&lt;br&gt;
I don't want to start by building dozens of microservices.&lt;/p&gt;

&lt;p&gt;At the beginning, the priority is to validate the business model and complete a real transaction.&lt;/p&gt;

&lt;p&gt;The initial architecture will therefore focus on a modular structure, with clear boundaries between business domains.&lt;/p&gt;

&lt;p&gt;The basic direction is:&lt;/p&gt;

&lt;p&gt;Backend API&lt;br&gt;
Consumer frontend&lt;br&gt;
Merchant frontend&lt;br&gt;
Admin platform&lt;br&gt;
Supply / partner platform&lt;br&gt;
MySQL&lt;br&gt;
Redis&lt;br&gt;
Queue / asynchronous processing&lt;br&gt;
Object storage&lt;br&gt;
AI services&lt;br&gt;
If the business eventually reaches a scale that requires service separation, individual modules can be extracted later.&lt;/p&gt;

&lt;p&gt;The architecture should evolve with the business, not become the business itself.&lt;/p&gt;

&lt;p&gt;Why Open Source?&lt;br&gt;
The long-term goal is to open-source the core project.&lt;/p&gt;

&lt;p&gt;But I don't want to open-source an empty repository just for the sake of putting a GitHub badge on a landing page.&lt;/p&gt;

&lt;p&gt;I want to first build something that actually works:&lt;/p&gt;

&lt;p&gt;A working marketplace&lt;br&gt;
A real merchant workflow&lt;br&gt;
A real consumer workflow&lt;br&gt;
A real order lifecycle&lt;br&gt;
A working administration system&lt;br&gt;
Real-world feedback&lt;br&gt;
Then the code, architecture decisions and lessons learned can become much more useful to other developers.&lt;/p&gt;

&lt;p&gt;What I Am Building Right Now&lt;br&gt;
At this stage, the project is still in the starting phase.&lt;/p&gt;

&lt;p&gt;There is no claim that the platform is finished. There is no claim that the architecture is perfect. And the project is not officially open source yet.&lt;/p&gt;

&lt;p&gt;Right now, I am focusing on:&lt;/p&gt;

&lt;p&gt;Defining the business model&lt;br&gt;
Designing the four platform ends&lt;br&gt;
Defining the core data model&lt;br&gt;
Designing the transaction flow&lt;br&gt;
Building the MVP&lt;br&gt;
Testing the merchant workflow&lt;br&gt;
Testing the consumer workflow&lt;br&gt;
Preparing the foundation for future open source&lt;br&gt;
The First Goal Is Simple&lt;br&gt;
The first milestone is not millions of users.&lt;/p&gt;

&lt;p&gt;It is not hundreds of merchants.&lt;/p&gt;

&lt;p&gt;It is not even the open-source release.&lt;/p&gt;

&lt;p&gt;The first milestone is:&lt;/p&gt;

&lt;p&gt;Complete one real transaction.&lt;/p&gt;

&lt;p&gt;One customer. One merchant. One product. One payment. One fulfillment. One completed order.&lt;/p&gt;

&lt;p&gt;If that workflow works, we have something real to improve.&lt;/p&gt;

&lt;p&gt;The 90-Day Direction&lt;br&gt;
My initial development roadmap is roughly divided into four stages:&lt;/p&gt;

&lt;p&gt;Validate — Research, business model and technical planning.&lt;br&gt;
Build MVP — Core marketplace functions and the four ends.&lt;br&gt;
Launch Trading — Products, merchants, payments, orders and delivery.&lt;br&gt;
Improve &amp;amp; Scale — SEO, supply, AI features and additional marketplace capabilities.&lt;br&gt;
The exact roadmap will probably change. That is part of the reason for documenting the process publicly.&lt;/p&gt;

&lt;p&gt;This Is a Development Log&lt;br&gt;
I want this series to record the project as it actually develops.&lt;/p&gt;

&lt;p&gt;That means future posts may include:&lt;/p&gt;

&lt;p&gt;Architecture decisions&lt;br&gt;
Database design&lt;br&gt;
API design&lt;br&gt;
Frontend development&lt;br&gt;
Merchant onboarding&lt;br&gt;
Marketplace search&lt;br&gt;
AI integration&lt;br&gt;
Deployment&lt;br&gt;
Problems and failures&lt;br&gt;
Lessons learned&lt;br&gt;
Eventually, the open-source release&lt;br&gt;
I don't know exactly what the final product will look like yet. And that's okay.&lt;/p&gt;

&lt;p&gt;The interesting part is seeing how an idea gradually becomes a real product.&lt;/p&gt;

&lt;p&gt;What's Next?&lt;br&gt;
The next step is to move from architecture diagrams and business ideas into actual implementation.&lt;/p&gt;

&lt;p&gt;The focus will be on building the core marketplace, getting the four ends connected, and eventually putting the first real order through the system.&lt;/p&gt;

&lt;p&gt;After that, I can start making the project more public, documenting the codebase and preparing the open-source version.&lt;/p&gt;

&lt;p&gt;Open source is the goal.&lt;/p&gt;

&lt;p&gt;But first, let's build something real.&lt;/p&gt;

&lt;p&gt;This is Day 0.&lt;/p&gt;

&lt;p&gt;More to come.&lt;/p&gt;

&lt;h1&gt;
  
  
  B2B2C #Marketplace #OpenSource #SaaS #Ecommerce #LocalCommerce #AI #BuildInPublic
&lt;/h1&gt;

</description>
      <category>b2b2c</category>
      <category>ai</category>
      <category>windbar</category>
    </item>
  </channel>
</rss>
