How to Build a Dating App
A dating app is a matching engine wrapped in a trust problem. Here is the data model, the screens and the safety work that has to ship on day one.

Key takeaways
- Matching is simple: a match exists when two people have each said yes to the other. Store the yes and no decisions and check for the mirror row.
- Messaging only after a mutual match, plus block, report and unmatch, are the safety baseline. Ship them with the first version.
- A dating app with too few people in one area feels broken. Launch in one city or one community and grow outward.
Building a dating app comes down to three parts: profiles people want to browse, a mutual match (both people said yes) that opens a chat, and safety tools strong enough that people feel comfortable meeting a stranger. The code for all three is modest. What decides whether it works is density: enough people in one place, which is why the smart first version targets one city or one community instead of everyone.
Density beats features
A swipe deck that runs out after eleven profiles feels like a dead app, however good the design is. General dating is owned by giants with millions of users; a new app wins by being the best place for a specific group: climbers, people over fifty, a faith community, a single university, rural farmers. A niche gives you a place to recruit the first few hundred members and a built-in conversation starter.
Decide your launch area before you design the deck. A distance filter with a 50 km default in a city where you have 300 members beats a global deck of 3,000 strangers spread across six countries.
The data model
- profiles: user id, first name only, birth date (show age, never the date), gender, who they want to see, a short bio, a few prompt answers, approximate location (city or a rounded point), the distance and age range they want, and a status (active, paused, banned).
- photos: profile id, storage path, order, and a review status (pending, approved, rejected). Two to six per profile.
- swipes: who decided, about whom, the decision (like or pass), and when. One row per pair and direction.
- matches: the two user ids (store the smaller id first so the pair is unique), created date, and an unmatched date when one side ends it.
- messages: match id, sender id, body, created date, read date.
- reports and blocks: reporter, reported user, reason, optional details, status; blocks are one row per pair and remove the other person from everything.
How matching works
When someone likes a profile, write the swipe and then check whether the other person has already liked them back. If the mirror row exists, create the match and tell both people. Do this check on the server (an edge function or a database function), never in the app, or anyone could create matches with people who never liked them.
The deck query is the heart of the app. For the signed-in person it returns profiles that are active, inside their age and distance range, of a gender they want to see, who also want to see someone like them, who they have not swiped on, and who have not blocked them or been blocked by them. Order by recently active so the deck is full of people who will actually reply. Paging twenty at a time is plenty.
Do not build a compatibility algorithm. Filters plus recent activity is what makes a small deck feel alive; scoring can come once you have data about which matches lead to conversations.
The screens
- 01Onboarding: sign in, confirm age, name, photos, who you want to meet, location permission. Show progress; it is a long form.
- 02Deck: one profile at a time with photos, age, distance in rounded kilometers, bio and prompts, and like and pass buttons (swipe gestures are a bonus, buttons are required for accessibility).
- 03It is a match: a short celebration with a button to send the first message.
- 04Matches list: new matches on top, conversations below with the last message.
- 05Chat: messages in a match, with unmatch, block and report in the header menu.
- 06My profile and settings: edit photos and answers, change filters, pause the account, delete the account.
- 07Admin: a queue of reports and new photos waiting for review, for you only.
Safety is the product
People decide whether to stay on a dating app based on how safe it feels after one bad interaction. These belong in version one:
- Chat only after a mutual match. Nobody can message someone who did not like them back.
- Unmatch removes the conversation for both sides immediately.
- Block and report from the profile and from inside chat, with reasons like fake profile, harassment, underage, or asking for money. A report should also hide that person from the reporter at once, before you review anything.
- Never show exact location. Store a city or a point rounded to a few kilometers and display distance rounded up. Exact coordinates let a determined person find someone's home.
- Age gate. Collect a birth date, refuse under-18 sign-ups, and make underage a report reason that you treat as urgent.
- Photo review. New photos start as pending and only appear in decks once approved. Early on you can approve by hand from the admin queue.
- Rate limits on likes and messages per hour, which slow down spam accounts and scripts.
Startbase Cloud keeps photos in storage buckets that are private by default, and the app can serve them through signed links that expire after an hour, so a copied photo URL stops working. Row-level security does the rest: a message can be read only by the two people in its match, and a profile is hidden from anyone in a block row with it. Test each rule by signing in as a third account and trying to read a chat you are not part of.
Chat and notifications
Chat feels broken if messages need a refresh, so new messages should arrive live through the backend's realtime channels while a conversation is open. For people who are not in the app, an email when they get a new match works from the first version: Startbase Cloud apps can send email through the platform sender with no setup, within a daily per-project limit, and through your own domain when volume grows. Phone push notifications need a native build of your own, so treat them as a later step.
What to leave out at first
- Paid features like boosts, super likes and "see who liked you". Add them once there are enough people for them to matter.
- Video chat and voice notes.
- ID or selfie verification services. Hand review of photos covers the first months; a verification vendor is a later integration through an edge function.
- Compatibility scores and questionnaires with dozens of questions.
- Group events and social feeds.
A brief you can paste
Build a dating app for people over 40 in Austin. Sign up with email or Apple; confirm the user is 18 or older from their birth date. Profile: first name, age, gender, who they want to meet, bio, three prompt answers, 2 to 6 photos. Store location as a point rounded to 2 km and show distance rounded up, never exact. The deck shows one active profile at a time that matches both people's gender and age preferences, within the user's distance, excluding anyone already swiped or blocked, most recently active first. Like and Pass buttons. Create a match on the server when both people liked each other, then show an It's a match screen. Chat only inside a match, live updating. Unmatch, Block and Report in every chat and profile; a report hides that person from the reporter immediately. New photos are pending until I approve them in an admin queue that also lists reports. Email people when they get a new match. Photos in a private bucket with signed links.
Once it runs, create four test accounts with different preferences and walk through the deck as each. Most matching bugs show up as someone appearing in a deck they should never see. When you are ready to charge for extras, Startbase Cloud takes payments through your own Stripe account; see the payments docs. For sign-in options like Apple and phone numbers, see Auth.
Most dating apps live on phones. You can build an Expo app and use it on your own phone with Expo Go during development, but App Store and Play Store builds are not available from Startbase right now; read how to build a native mobile app for how the store step works with your own build. A published web version is a reasonable way to start in one city while you prepare that. For budget ranges, see what a dating app costs, and user authentication explained covers the sign-in choices in plain words.
Frequently asked questions
How does a dating app decide who matches?
Each like or pass is stored as a decision. When someone likes a person who already liked them, the server creates a match. The deck itself is a filtered query: preferences on both sides, distance, people not yet seen, and no blocks.
How do dating apps keep users safe?
Messaging only after a mutual match, easy unmatch, block and report, approximate locations only, age checks at sign-up, photo review and rate limits. These are baseline features, not extras.
How many users does a dating app need to work?
There is no fixed number, but the deck has to feel full in one area. That is why new dating apps launch in a single city or community, where a few hundred active people can be enough to keep conversations going.
Should I show exact distance between users?
No. Store a rounded location and display distance rounded up, such as "less than 5 km away". Exact positions can be triangulated to find where someone lives.
