Building your Own SaaS
Episode Sponsors.
Building your Own SaaS is a CodingCat.dev podcast episode featuring Tim Benniks alongside Alex Patterson focused on Supabase, Algolia, Vue. Tim teaches Alex how to make your own SaaS using Supabase, Algolia and Nuxt. Building your own SaaS with Supabase, Nuxt and Algolia: Watch the full video breakdown on YouTube or explore the architectural notes, chapters, and official documentation links below.
Repo: https://github.com/CodingCatDev/cwcc-sass-supabase-nuxt-algolia
Creating a SaaS platform using Supabase, Nuxt, and Algolia is an exciting project that combines powerful technologies for a robust end product. Let's walk through the steps to set this up:
Setting up a Nuxt Project
First, you need to set up a Nuxt project. Nuxt is a powerful Vue.js framework that simplifies web development. You can create a new Nuxt.js project using the create-nuxt-app.
npx create-nuxt-app my-projectFollow the prompts to set up your project. For this example, we are using Supabase for our backend, so you can skip choosing an Axios module or any backend framework.
Installing Necessary Packages
To integrate Supabase with your Nuxt project, you need to install the Supabase JavaScript client.
npm install @nuxtjs/supabase @nuxt/ui @nuxt/devtools @nuxt/ui-pro @nuxtjs/algoliaIntegrating Supabase with Nuxt
Connecting Nuxt to Supabase
Now, you will need to initialize Supabase in your Nuxt project. This can be done using Nuxt Modules.
Example: Authentication in Nuxt with Supabase
Below is a basic example of how you might handle user authentication in your application.
login.vue
<script setup lang="ts">
const supabase = useSupabaseClient();
const user = useSupabaseUser();
const state = reactive({
email: ''
});
const loginError = ref(false);
const loginSuccess = ref(false);
async function onSubmit() {
const { error } = await supabase.auth.signInWithOtp({
email: state.email,
options: {
emailRedirectTo: 'http://localhost:3000/confirm'
}
});
if (error) {
loginError.value = true;
loginSuccess.value = false;
} else {
loginSuccess.value = true;
loginError.value = false;
}
}
watch(
user,
() => {
if (user.value) {
return navigateTo('/');
}
},
{ immediate: true }
);
</script>
<template>
<UContainer :ui="{ constrained: 'max-w-xl' }">
<UCard class="mt-10">
<template #header>
<div class="flex justify-between">
<h1 class="font-bold text-xl">Log in</h1>
<UColorModeButton />
</div>
</template>
<section>
<UForm
v-if="!loginError && !loginSuccess"
:state="state"
class="space-y-4"
@submit="onSubmit"
>
<UFormGroup label="Email" name="email" v-slot="{ error }">
<UInput
v-model="state.email"
type="email"
placeholder="Enter email"
:icon="error ? 'i-heroicons-exclamation-triangle-20-solid' : 'i-heroicons-envelope'"
/>
</UFormGroup>
<UButton type="submit"> Submit </UButton>
</UForm>
<UAlert
v-if="loginError"
color="red"
variant="subtle"
icon="i-heroicons-exclamation-triangle-20-solid"
title="There was an error"
description="Please reload this page to try again."
/>
<UAlert
v-if="loginSuccess"
color="green"
variant="subtle"
icon="i-heroicons-check-badge"
title="Check your email"
description="A magic login link has been send to your email address."
/>
</section>
</UCard>
</UContainer>
</template>Integrating Algolia with Nuxt
Connecting Nuxt to Aloglia
Now, you will need to initialize Algolia in your Nuxt project. This can be done using Nuxt Modules.
Example: Adding Search
This is a simple but very powerful feature to quickly add search into your frontend application.
algolia.vue
<script setup lang="ts">
import {
AisInstantSearch,
AisSearchBox,
AisHits,
AisRefinementList,
AisConfigure
} from 'vue-instantsearch/vue3/es';
import { history } from 'instantsearch.js/es/lib/routers';
import { simple } from 'instantsearch.js/es/lib/stateMappings';
const routing = {
router: history(),
stateMapping: simple()
};
// import { translateLabel } from "../lib/helpers";
const indexName = 'codingcatdev-cats';
const algolia = useAlgoliaRef();
const links = [
{
label: 'Cat overview',
icon: 'i-heroicons-list-bullet',
to: '/cats'
}
];
const columns = [
{
key: 'name',
label: 'Name'
},
{
key: 'color',
label: 'Color'
},
{
key: 'vacinated',
label: 'vacinated'
}
];
const selectedColumns = ref([...columns]);
function transformItems(items: any) {
return items.map((item: any) => ({
...item,
label: item.label
}));
}
function mapToTableRows(items: any) {
return items.map((item: any) => {
return {
id: item.id,
name: item.name,
color: item.color,
vacinated: item.vacinated,
class: 'bg-gray-50 dark:bg-gray-950'
};
});
}
</script>
<template>
<ais-instant-search :index-name="indexName" :search-client="algolia" :routing="routing">
<ais-configure :hitsPerPage="100" />
<UPage :ui="{ wrapper: 'max-w-full', left: 'pl-8' }">
<template #left>
<UAside>
<h3 class="font-bold mb-2">Color</h3>
<ais-refinement-list attribute="color" operator="and" :transform-items="transformItems">
<template v-slot:item="{ item, refine }">
<UCheckbox
color="primary"
:checked="item.isRefined"
:model-value="item.value"
@change="refine(item.value)"
:ui="{ wrapper: 'mb-1' }"
>
<template #label>
<span class="space-x-2">
<span>{{ item.label }}</span>
<UBadge variant="subtle" size="xs" :ui="{ rounded: 'rounded-full' }">
{{ item.count }}
</UBadge>
</span>
</template>
</UCheckbox>
</template>
</ais-refinement-list>
<UDivider type="solid" class="my-6" />
<h3 class="font-bold mb-2">Vacinated</h3>
<ais-refinement-list attribute="vacinated">
<template v-slot:item="{ item, refine }">
<UCheckbox
color="primary"
:checked="item.isRefined"
:model-value="item.value"
@change="refine(item.value)"
:ui="{ wrapper: 'mb-1' }"
>
<template #label>
<span class="space-x-2">
<span>{{ item.label }}</span>
<UBadge variant="subtle" size="xs" :ui="{ rounded: 'rounded-full' }">
{{ item.count }}
</UBadge>
</span>
</template>
</UCheckbox>
</template>
</ais-refinement-list>
<template #top>
<UPageLinks :links="links" />
</template>
</UAside>
</template>
<UPageBody>
<ais-hits>
<template v-slot="{ items }">
<div class="flex justify-between pr-4 mb-8">
<div class="flex gap-4">
<ais-search-box>
<template v-slot="{ currentRefinement, isSearchStalled, refine }">
<UInput
type="search"
placeholder="Search Cat"
icon="i-heroicons-magnifying-glass-20-solid"
:loading="isSearchStalled"
:modelValue="currentRefinement"
color="primary"
variant="outline"
@input="refine($event.currentTarget.value)"
/>
</template>
</ais-search-box>
</div>
<USelectMenu
v-model="selectedColumns"
:options="columns"
multiple
placeholder="Columns"
/>
</div>
<UTable :columns="selectedColumns" :rows="mapToTableRows(items)" />
</template>
</ais-hits>
</UPageBody>
</UPage>
</ais-instant-search>
</template>Add all features of a SaaS
Check the full video above to see how you can add Supabase and Algolia into a Nuxt framework and build an amazing application in a weekend. Dive in even further by building out your own custom functions with Supabase to push your database directly to Algolia.
Resources, Links & Official Documentation
- Watch on YouTube: Building your Own SaaS Full Video (plus Subscribe to CodingCat.dev)
- Tim Benniks Guest Profile & Episodes on CodingCat.dev
- Tim Benniks on GitHub
- Tim Benniks Official Website
- Episode Sponsor: Algolia
- Supabase Documentation: Postgres database, Row Level Security, Edge Functions, and Vector search
- Algolia Search Documentation: Instant search indexing, typo tolerance, and hybrid AI retrieval
- Vue.js Official Guide: Composition API, reactivity system, and component patterns
Related CodingCat.dev Tutorials & Podcast Episodes
- Building Successful Open Source Projects: I chatted with Brian (aka bdougie) about Hacktoberfest, building OpenSauced, and making successful open-source projects.
- Creating a Better Vue with Nuxt: We chat with Daniel Roe about how he became a member of the Nuxt team and how Nuxt fits into the Vue.js ecosystem.
- Supabase New Release: Supabase dropped a lot of new features during their X launch, I review these with Jon.
Frequently Asked Questions (FAQ)
What are the main takeaways from Building your Own SaaS?
Tim teaches Alex how to make your own SaaS using Supabase, Algolia and Nuxt. Building your own SaaS with Supabase, Nuxt and Algolia: Throughout this podcast, Tim Benniks breaks down real-world implementation details for Supabase, Algolia, Vue so developers can apply these patterns directly in production.
How do you implement Supabase best practices in production?
When adopting Supabase and Algolia in a production stack, start by validating your configuration against the Supabase Documentation (Postgres database, Row Level Security, Edge Functions, and Vector search). Focus on incremental adoption, automated testing, and observability so your team can measure performance and developer velocity improvements at each stage.
Where can I watch the full Building your Own SaaS walkthrough and find related code resources?
You can watch the complete video session for Building your Own SaaS on the CodingCat.dev YouTube channel. For a deeper dive into Supabase, check out our related guide: Building Successful Open Source Projects.
✏️ Episode Summary
Building your own SaaS with Supabase, Nuxt and Algolia: 🔔 Subscribe for weekly AI, MCP & Web Architecture deep dives: https://www.youtube.com/@CodingCatDev?sub_confirmation=1 ▶️ Watch Next (2026 Architecture Deep Dive): https://www.youtube.com/watch?v=7d6iJHEPMZI&list=UUnKZ8gEb78zXKMi1ns-IQ2g 🐾 Explore CodingCat.dev: • Courses: https://codingcat.dev/co — I live inside my own world of M believe kids screaming in the crad profan itties I see the world through ice covered in in and Bri cross this episode of Code with in cat is brought to you by our good friends at algolia check out their search today algolia helps you create a search and discovery engine in Three Steps step One Import your data import the API client initialize the client in index loa...
how this episode connects together.
Follow AJ from first principles to production-ready architecture.

