I build PostTender, a free reverse-auction marketplace for local services and wholesale sourcing. Instead of searching a directory and phoning businesses one by one, you post a requirement once (we call it a "tender") and nearby providers send you their own price. This post walks through how the pieces fit together, with a focus on the hardest part: getting one free-text request in front of the right nearby businesses.

The stack at a glance

  • Web app: React + TypeScript + Vite + MUI, translated into 43 languages.
  • Android app: React Native (New Architecture) with the React Native Firebase modules.
  • Backend: Firebase — Firestore, Auth, Storage, Cloud Messaging and Cloud Functions on Node 22.
  • Local business data: Google Places, always called from Cloud Functions, never from a client.
  • SEO: prerendered app shells plus server-rendered city and city-by-category pages.

Both clients talk to the same Firestore collections and the same callable functions, so a tender posted on the web shows up in the Android app and vice versa.

The data model: a tender is public, the person behind it is not

A tender holds a title, description, categories, photos, a location (lat/lng plus a readable place name), a visibility radius and an expiry date. Providers need to read it to decide whether to bid, so the tender document is world-readable by design.

That decision forces a rule we never break: no contact details on the tender. The poster's phone number lives elsewhere and is only returned by a callable function that checks who is asking. Firestore security rules are great at "who can read this document", but they are not field-level, so anything sensitive has to sit in a different document or behind a function.

Same idea for user profiles: other users are read from a separate public-profile collection, never from the raw users collection.

Matching a free-text request to nearby providers

People don't pick from a neat taxonomy. They type "need someone to fix a leaking bathroom tap" or "500 corrugated boxes, printed". So when a tender is created, a Firestore onCreate trigger scores candidate providers on several signals:

  1. Categories with synonyms – fuzzy matching against a synonym map ("plumber", "plumbing", "pipe fitter"), with a minimum length so short words don't match everything.
  2. Google place types – a provider that claimed a Google business listing carries that listing's types, which often say more than the category they picked by hand.
  3. Keywords from the title and description.
  4. A Places text search on the title, to see which real businesses Google associates with the request; if one of them is a claimed PostTender provider, that is a strong match.

Everything is then filtered by Haversine distance against the tender's visibility radius (the poster chooses it, clamped to a sane range). Matching deliberately fails open on missing data: a provider with no stored coordinates is better shown a slightly irrelevant tender than silently never shown anything.

Matched providers get an inbox entry and a push notification, sent in batches.

When there is no provider on the platform yet

A new marketplace has a cold-start problem: a tender in a town where nobody has signed up yet gets zero bids. Our answer is to treat Google Places as the supply side. The same Places search that helps with matching returns real nearby businesses, and a scheduled function later invites the most relevant ones over WhatsApp, in the language of the tender, with a link to view it and bid. Failed sends fall back to SMS. Recipients are de-duplicated by phone number, because the same business often appears under two listings.

This is also why any free-text need works, including B2B sourcing: if a business exists on Google Maps near the poster, it can be invited.

Keeping paid APIs under control

Places calls cost money, and a public web app is an easy target for abuse. So clients never hold a Places key. Every Google request goes through a Cloud Functions proxy that checks Firebase App Check, applies shared rate limits and enforces a daily budget. If the budget runs out, search degrades instead of the bill growing.

Money and currencies

Providers can bid from different countries, so each bid stores the bidder's currency, stamped on the server rather than trusted from the client. The UI never sums or sorts bare amounts across currencies. Subscription payments are confirmed by payment-provider webhooks, which are the single authority for what a provider has paid for.

43 languages and server-rendered city pages

The web app ships translation files per language and a build step fails if any language is missing a key, because a missing key silently renders English and nobody notices.

For search engines, the single-page app is prerendered into static shells, and city pages (for example "plumbers in a given city") are rendered by a Cloud Function so they contain real HTML, localized text and hreflang links. A lesson there: programmatic pages only get indexed when each one has something genuinely different to say, so we keep the indexable set small and focused.

What I would tell my past self

  • Decide early which documents are public and keep secrets out of them structurally, not by convention.
  • Put every paid third-party API behind your own function with a budget from day one.
  • Let the server stamp anything that matters (currency, status, verification).
  • Make matching fail open, then improve the ranking.

If you want to see the result, you can post a request on PostTender for free; the Android app is on Google Play. Happy to answer questions about Firebase triggers, Places or React Native in the comments.