<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by J19Z on Medium]]></title>
        <description><![CDATA[Stories by J19Z on Medium]]></description>
        <link>https://medium.com/@J19Z?source=rss-2bd0cabcd283------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZZShARKX5E1aChk5BvjCKA.png</url>
            <title>Stories by J19Z on Medium</title>
            <link>https://medium.com/@J19Z?source=rss-2bd0cabcd283------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:50:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@J19Z/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Favorite Modern Stack: Vue + Nuxt + Supabase + Vercel (with Code)]]></title>
            <link>https://medium.com/@J19Z/my-favorite-modern-stack-vue-nuxt-supabase-vercel-with-code-c0978db6f394?source=rss-2bd0cabcd283------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0978db6f394</guid>
            <category><![CDATA[side-project]]></category>
            <category><![CDATA[nuxtjs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[supabase]]></category>
            <category><![CDATA[vuejs]]></category>
            <dc:creator><![CDATA[J19Z]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 22:45:32 GMT</pubDate>
            <atom:updated>2025-07-08T22:45:32.118Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bb0xhAIFDYbzGdOZJLwwbQ.jpeg" /><figcaption><strong><em>A simple, clean to-do list app built with Vue, Nuxt, Supabase, and Nuxt UI.</em></strong></figcaption></figure><p>I recently set out to build a simple to-do list app, just a little side project to test some ideas. What I didn’t expect was to fall in love with a whole new stack that made the process ridiculously fast, smooth, and honestly, kind of fun.</p><p>I used <strong>Vue.js</strong>, <strong>Nuxt</strong>, <strong>Nuxt UI</strong>, <strong>Supabase</strong>, and <strong>Vercel, </strong>and this combo just <em>clicked</em>. It felt like everything worked together without friction. Clean syntax, real-time updates, easy deployment… no headaches!</p><h3>Why This Stack Works So Well</h3><p>Let’s break it down:</p><ul><li><strong>Vue.js</strong> is one of the most intuitive front-end frameworks I’ve ever used. Clean structure, reactive by default, and incredibly flexible.</li><li><strong>Nuxt</strong> builds on top of Vue, adding powerful features like server-side rendering, routing, and a polished development experience out of the box.</li><li><strong>Nuxt UI</strong> gives you a set of ready-made components (think buttons, cards, inputs) that look great with minimal effort.</li><li><strong>Supabase</strong> is where the magic happens on the backend. Postgres database, real-time updates, authentication, and even file storage. All without spinning up a single server.</li><li><strong>Vercel</strong> takes care of deployment like it’s 2025. Push to GitHub, and your app is live, no config, no pain!</li></ul><p>Together, these tools create a dev environment that’s both chill and powerful. Perfect for building real apps without getting bogged down.</p><h3>Step 1: Spinning Up the Project</h3><p>First, I created a new Nuxt project using the CLI:</p><pre>npx nuxi init nuxt-supabase-todo<br>cd nuxt-supabase-todo</pre><p>Then I installed the UI and Supabase modules:</p><pre>npm install @nuxt/ui @nuxtjs/supabase</pre><p>Let me give you a quick idea of what those do:</p><ul><li>@nuxt/ui: This gives you beautiful, customizable components (cards, inputs, buttons) that just work.</li><li>@nuxtjs/supabase: This lets you talk to your Supabase backend without writing extra boilerplate.</li></ul><h3>Step 2: Building the To-Do List App</h3><p>Now for the front end. I wanted something minimal but fully functional; add tasks, edit them, mark them done, delete them. Nothing fancy, but it had to work well.</p><p>Here’s the main page (pages/index.vue) I built:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;min-h-screen flex items-center justify-center&quot;&gt;<br>    &lt;div class=&quot;max-w-md w-full mx-auto p-4&quot;&gt;<br>      &lt;UCard class=&quot;p-6 bg-white shadow-md rounded-lg&quot;&gt;<br>        &lt;template #header&gt;<br>          &lt;h1 class=&quot;text-2xl font-bold mb-4 text-center&quot;&gt;To-Do List&lt;/h1&gt;<br>        &lt;/template&gt;<br>        &lt;div class=&quot;mb-4&quot;&gt;<br>          &lt;UInput v-model=&quot;newTask&quot; placeholder=&quot;Enter a new task&quot; class=&quot;mr-2&quot; /&gt;<br>          &lt;UButton label=&quot;Add Task&quot; color=&quot;primary&quot; @click=&quot;addTask&quot; /&gt;<br>        &lt;/div&gt;<br>        &lt;div class=&quot;space-y-4&quot;&gt;<br>          &lt;div v-for=&quot;task in tasks&quot; :key=&quot;task.id&quot; class=&quot;flex items-center p-2 border-b border-gray-200&quot;&gt;<br>            &lt;UCheckbox v-model=&quot;task.completed&quot; @change=&quot;updateTask(task)&quot; class=&quot;mr-2&quot; /&gt;<br>            &lt;span v-if=&quot;!isEditing[task.id]&quot; :class=&quot;{ &#39;line-through&#39;: task.completed }&quot;&gt;{{ task.title }}&lt;/span&gt;<br>            &lt;UInput v-else v-model=&quot;editedTask&quot; class=&quot;mr-2 flex-1&quot; /&gt;<br>            &lt;UButton v-if=&quot;!isEditing[task.id]&quot; label=&quot;Edit&quot; size=&quot;xs&quot; color=&quot;secondary&quot; class=&quot;ml-2&quot; @click=&quot;startEdit(task)&quot; /&gt;<br>            &lt;UButton v-else label=&quot;Save&quot; size=&quot;xs&quot; color=&quot;success&quot; class=&quot;ml-2&quot; @click=&quot;saveEdit(task)&quot; /&gt;<br>            &lt;UButton label=&quot;Delete&quot; size=&quot;xs&quot; color=&quot;error&quot; class=&quot;ml-2&quot; @click=&quot;deleteTask(task.id)&quot; /&gt;<br>          &lt;/div&gt;<br>        &lt;/div&gt;<br>      &lt;/UCard&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script setup&gt;<br>import { ref, onMounted, onUnmounted } from &#39;vue&#39;;<br>const supabase = useSupabaseClient();<br>const newTask = ref(&#39;&#39;);<br>const tasks = ref([]);<br>const isEditing = ref({});<br>const editedTask = ref(&#39;&#39;);<br>let channel;<br><br>async function addTask() {<br>  if (newTask.value.trim()) {<br>    const { error } = await supabase.from(&#39;tasks&#39;).insert({<br>      title: newTask.value,<br>      completed: false<br>    });<br>    if (error) console.error(error);<br>    else newTask.value = &#39;&#39;;<br>  }<br>}<br><br>async function updateTask(task) {<br>  const { error } = await supabase.from(&#39;tasks&#39;).update({ completed: task.completed }).eq(&#39;id&#39;, task.id);<br>  if (error) console.error(error);<br>}<br><br>async function deleteTask(id) {<br>  const { error } = await supabase.from(&#39;tasks&#39;).delete().eq(&#39;id&#39;, id);<br>  if (error) console.error(error);<br>}<br><br>function startEdit(task) {<br>  isEditing.value[task.id] = true;<br>  editedTask.value = task.title;<br>}<br><br>async function saveEdit(task) {<br>  if (editedTask.value.trim()) {<br>    const { error } = await supabase.from(&#39;tasks&#39;).update({ title: editedTask.value }).eq(&#39;id&#39;, task.id);<br>    if (error) console.error(error);<br>    else isEditing.value[task.id] = false;<br>  }<br>}<br><br>async function fetchTasks() {<br>  const { data, error } = await supabase.from(&#39;tasks&#39;).select(&#39;*&#39;);<br>  if (error) console.error(error);<br>  else tasks.value = data;<br>}<br><br>onMounted(() =&gt; {<br>  fetchTasks();<br>  channel = supabase<br>    .channel(&#39;tasks-channel&#39;)<br>    .on(&#39;postgres_changes&#39;, { event: &#39;*&#39;, schema: &#39;public&#39;, table: &#39;tasks&#39; }, (payload) =&gt; {<br>      fetchTasks();<br>    })<br>    .subscribe();<br>});<br><br>onUnmounted(() =&gt; {<br>  if (channel) supabase.removeChannel(channel);<br>});<br>&lt;/script&gt;</pre><p>The structure is clean thanks to <strong>Nuxt UI</strong> components like UCard, UInput, UButton, and UCheckbox. I also used Vue’s reactivity system and tied it all together with Supabase for fetching and updating data.</p><h3>Step 3: Connecting to Supabase (a.k.a. the Backend That Just Works)</h3><p>I didn’t want to deal with setting up a server or writing a bunch of boilerplate code just to store and fetch tasks. Supabase made that easy. It’s built on top of Postgres, but it adds features like real-time updates, user authentication, and file storage; basically giving you a full backend without the backend headaches. For a simple to-do app like this one, it was more than enough.</p><h4>1. Set up your Supabase project</h4><p>Head to <a href="https://supabase.com/">supabase.com</a>, sign up (it’s free), and create a new project. Once it’s up, grab your <strong>Project URL</strong> and <strong>Anon Key</strong> from the project settings under <strong>API</strong>.</p><h4>2. Create the database table</h4><p>In the <strong>Supabase dashboard</strong>, go to <strong>Table Editor</strong> and create a new table called tasks. Add these columns:</p><ul><li>id – Integer (set as primary key, auto-increment)</li><li>title – Text</li><li>completed – Boolean</li></ul><p>Hit save and you’re good to go.</p><p><strong>Row-Level Security (RLS):</strong><br>Supabase offers RLS to control access to table rows, adding a layer of security by defining policies (e.g., who can read or write data). For this personal project, I disabled RLS to allow public access for simplicity — I created a policy that always returns true, then turned RLS off entirely. This worked fine for a demo app, but for production, I’d definitely keep RLS enabled and define proper policies to secure user data.</p><h4>3. Connect Supabase to Nuxt</h4><p>Update your nuxt.config.ts to include the module and your keys:</p><pre>export default defineNuxtConfig({<br>  modules: [&#39;@nuxt/ui&#39;, &#39;@nuxtjs/supabase&#39;],<br>  supabase: {<br>    url: process.env.SUPABASE_URL,<br>    key: process.env.SUPABASE_KEY,<br>    redirect: false<br>  }<br>});</pre><p>Create a .env file on the root of your Nuxt project and add the Supabase Project URL and Anon Public Key:</p><pre>SUPABASE_URL=your-supabase-url<br>SUPABASE_KEY=your-anon-key</pre><h4>4. Using Supabase in your code</h4><p>With the module installed, useSupabaseClient() gives you full access to Supabase from any component. In my case, I used it to fetch all tasks on page load and to add, edit, and delete tasks.</p><p>All of this logic is already shown in the index.vue code earlier, and it worked beautifully. Every time a task is added or updated, the UI updates instantly</p><p><strong>Note: </strong>Supabase handles 90% of use cases, think CRUD operations, authentication, file storage, and real-time data. For more complex apps, it might cover even more with its <strong>edge functions</strong> and <strong>APIs</strong>.</p><h3>Step 4: Deploying to Vercel (a.k.a. the Smoothest Part of All)</h3><p>Once the app was working locally, I wanted to get it online, and <strong>Vercel made this ridiculously easy!!</strong> I didn’t touch a config file. I didn’t write a deploy script. Here’s what I did:</p><h4>1. Push the Project to GitHub</h4><p>First, I created a new repo on GitHub and pushed my Nuxt project there:</p><pre>git init<br>git remote add origin https://github.com/yourusername/your-repo.git<br>git add .<br>git commit -m &quot;Initial commit&quot;<br>git push -u origin main</pre><p>Before we move on, <strong>make sure your </strong><strong>.env file with your Supabase keys is not uploaded to GitHub</strong>.</p><p>If you created your Nuxt project with the CLI and chose to initialize a GitHub repo, it likely generated a .gitignore file for you. That file should already exclude .env, node_modules, and other things you don’t want in a public repo.</p><p>Just double-check before pushing. Keeping your keys private = good habit, even for demo projects.</p><h4>2. Connect GitHub to Vercel</h4><p>Then I went to <a href="https://vercel.com/">vercel.com</a>, logged in, and clicked <strong>“New Project”</strong>.</p><p>Vercel automatically detected my repo. I just had to:</p><ul><li>Select the project</li><li>Confirm that it’s a <strong>Nuxt 3</strong> app</li><li>Add my environment variables (SUPABASE_URL and SUPABASE_KEY)</li><li>Click <strong>Deploy</strong></li></ul><p>That was it. In less than a minute, my app was live on a .vercel.app domain.</p><h4>3. The Best Part: Instant Updates</h4><p>Any time I push a change to GitHub, Vercel rebuilds and redeploys the app automatically. No downtime, no manual deploys, no DevOps headaches.</p><p>This is honestly one of my favorite parts of this stack. It makes shipping updates feel like part of the normal dev flow, not a separate step I have to think about.</p><p><strong>Note:</strong> If you want to make things extra polished, Vercel also lets you connect a custom domain in just a few clicks. You can use their DNS or configure your own, whatever’s easiest.</p><p>💡 <em>As of today, it looks like this feature is still free, even on the free tier.</em></p><h3>Final Thoughts</h3><p>This project started as a quick experiment and ended up solidifying a stack I genuinely enjoy using. The tools felt like they were working <em>with</em> me, not against me, everything just flowed. I didn’t need to wrestle with config files, set up servers, or design a UI from scratch. For me, that’s what modern web dev should feel like: quick to start, fun to build, and smooth to ship. If you’ve been looking for a stack that’s approachable yet production-ready, I think this combo is absolutely worth a try.</p><h4>Want to Check Out the Code?</h4><p>The full source code is available here:<br> 👉 <a href="https://github.com/j19z/nuxt-supabase-todo">https://github.com/j19z/nuxt-supabase-todo</a></p><p>Feel free to clone it, play around, or use it as a starting point for your own build.</p><h4>Thanks for Reading!!</h4><p>If you found this helpful, consider leaving a comment or giving it a clap on Medium. I’ll be sharing more dev builds and projects like this — follow along if you’re into that kind of thing. 😄</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0978db6f394" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>