You no longer need to know how to write code in order to build powerful software. Makers of all backgrounds are turning to no-code tools like Bubble to build products with our seamless visual editor. Our platform simplifies the process of designing and developing applications of any kind. Our customers have used Bubble to build job boards, social networks, and even internal company tools.
This post will walk through the process of using Bubble to build a whitelabel version of Groupon. Groupon is a marketplace for discovering offers and discounts, allowing users to find deals on products and services that align with their interests.
Whether you’re looking to build your own no-code version of a Groupon marketplace, or you’re just interested in utilizing some of the core features from the platform, this guide will share how to start building the underlying framework for your product.
Throughout this guide, we’ll highlight how to build the following key features of Groupon:
- Hosting a portal where brands can submit offers
- Categorizing and displaying offers
- Using dynamic pages to display the full details of an offer
- A function for users to purchase offers
- Displaying a user’s claimed offers in their account dashboard
- Get Started
- Configuring your database
- Building workflows
- Start Building
To get started, you’ll need to create a Bubble account. You can register here for free - even without a Groupon offer.
We also recommend completing our introductory lessons, which will guide you through the step-by-step process of the most common Bubble features. This will help you get a running start when building your Groupon clone.
When kickstarting your project, you can choose to start by wireframing your product design, or building the necessary fields within your database.
In this case, we’ll start by using the visual design tool to shape the user-interface of our product. Some of the core pages you’ll want to include in your Groupon MVP are:
- Home page - Displaying all available offers, as well as any relevant navigation menus
- A page where brands can submit offers
- A page to host each unique offer - listing its full details and offering support to purchase the deal
- A user account page - used to display the full list of offers an individual has purchased
A major feature within Bubble is the ability to send data to a page. This means that you only need to create one generic version of a page that can request information about specific users or things from your database.
In the case of your no-code Groupon clone, you’ll only need to create one page to host each individual offer. We can then write the necessary logic to display only the relevant content for each offer when it’s required (we’ll cover this in more detail soon).
Configuring your database
Once you’ve mapped out the display of your product, you’ll then start mapping out the necessary data fields to power your application. We’ll rely on these fields to connect the logic behind your product.
Creating a database in Bubble is a seamless process. Start by listing your top-level data types, then add the necessary fields within each category.
When building you Groupon MVP, we’ll need to create the following data types & fields:
Data Type: Offers
- Coupon code
- Users claimed deal - Note: Creating a list based on a separate data type will allow you to seamlessly integrate all of its relevant data fields without having to create additional field values.
Data Type: User
- Offers claimed - list of offers
- City or location
Now that you’ve structured both the design and database for your application, it’s time to start stitching everything together to make your product functional.
In Bubble, the main way to do this is with “workflows”. Each workflow happens when an “event” occurs (e.g. a user clicks on a button), and then runs a series of “actions” in response (e.g. “sign the user up”, “make a change to the database”, etc.)
Creating new offers
Whether a brand or a moderator is adding an offer to the platform, you can build a private portal to easily support this process. Within your offer portal, you’ll use input fields to map out free-text, structured, or file fields that can be used to update your database.
Once a brand has added the relevant offer details within each input, they’ll click the submit button to create new data within your database.
Using the workflow editor, you can select to create a new thing within your database under the ‘offer’ data type.
You’ll then match the relevant input fields to the data fields within your database.
Once you’ve started creating offers, it’s time to then start writing the logic on your home page to display these as dynamic lists. This can be achieved by utilizing our repeating group element.
Repeating groups integrate with your database to display and update a list of dynamic content.
When using a repeating group, you’ll need to first link the element to a data type within your database. In this instance, you’ll classify the type of content as “Offers.”
You’ll also need to set the data source as a list of all the offers stored in your database.
Note: If you’d like to sort the offers displayed on your homepage by their categories, you can add additional constraints to the data source within your repeating group - only fetching the data with a relevant category.
Now you’re ready to start structuring the dynamic content that will be displayed within the grid. Simply map out the first column with the relevant content you’d like to display; this powerful element will then populate the remaining columns based on your existing data.
It’s also possible to create events based on each individual column of the repeating group. This feature will become useful when building navigational functions across your platform.
Groupon’s homepage only displays an overview of each offer - including a title, an image and a price. It doesn’t, however, display the full details of an offer until a user clicks through to the offer page.
To create the logic for this event, you’ll need to start by building a workflow that redirects a user to your question page when the questions image is clicked.
When creating this workflow, use a navigation event to send a user to another page. From here, select the destination page to be the offer page.
You’ll then need to send additional data to this page so the Bubble editor knows which specific offer to display. The data you’ll need to display is that of the current cells offer.
Display dynamic content on an offers page
When someone is directed to a specific offer page, you can easily pull this event data and display its relevant content.
When building this function, you’ll first need to ensure that the destination page type matches the data property that you’re sending within the workflow. In this case, you’ll need to set the offer page to an offers property.
By classifying the type of content on a page, Bubble can easily pull and send relevant data from existing sources.
You can now start adding dynamic content into the fields that display information from a particular offer.
Allowing users to purchase offers
Using Bubble, it’s possible to harness the power of several plugins to easily accept payments and process orders.
In this guide, we’ll be using the Stripe.js plugin to process credit card payments through Stripe.
Note: After integrating this plugin, you’ll need to first configure your API keys within the plugin settings.
When accepting payments, you’ll need to build a checkout interface that allows users to add their credit card details. For the sake of our MVP, we’ll be adding these relevant fields below the purchase button.
You’ll also need to include a Stripe token element next to the payment form. This element won’t be visible to your end-users, but is essential to powering a new transaction in Stripe.
Next, we’ll need to create a new workflow that triggers a Stripe payment when the “Buy” button is clicked.
You’ll begin by selecting the event ‘convert card into Stripetoken A’. Within this event, you’ll need to configure your input fields to match Stripes payment structure.
Once a card has been converted into a Stripe token, you’ll then need to create an additional workflow that automatically processes this token from a user's bank account.
Using the ‘Stripe.js - charge - create’ event, you’ll verify the Stripe token, as well as the final amount to be paid (including the currency).
If you’d like additional guidance when building your payment processing workflow, you can watch a full tutorial in the video below.
Once a payment has been processed, you'll need to display this offer to the current user within their account dashboard.
By adding an additional step to the payments workflow, we’ll make changes to a thing (the current user). The data we’ll want to change is the current users list of offers claimed - adding the offer from the item they just purchased.
Displaying a users claimed offers
Finally, once a user's offer has been claimed, we’ll display content on a separate page called user account.
On this page, we’ll simply add a repeating group element and configure the data source as a "Current Users Offers claimed." Each row will include the current offer’s coupon code.
Now that you’re familiar with creating custom data fields and displaying dynamic content, you can start getting creative with the experiences you build within your marketplace. You can:
- Add a function to save offers to a users wish list
- Add user reviews to offers
- Add variants to offers
- Add a search function on the home page
Hiring a developer to build your product no longer needs to cost thousands. Now you can allocate these resources to growing your product user-base.
As you launch and grow in users, paid plans allow you to host the app on your own custom domain - starting as low as $25 per month. Some templates and plugins may cost more, but you can build all the functionality of a marketplace without any additional costs.
If you don’t want to build your Groupon clone from scratch, you can purchase one of the templates made by our community members. Some similar templates to Groupon include:
- Deals and Coupons by Zeroqode
- Marketplace like Amazon by Zeroqode
- Marketly Full Marketplace by Zeroqode
- Courses like Udemy by Zeroqode
Bubble can help you build a Groupon clone or any other product you choose! It’s never been easier to build something incredible without having to code.
To get started for free, sign up here.
You can also connect with other passionate makers building with Bubble on our community forum.