--- title: 'Use Supabase with Nuxt' subtitle: 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Nuxt app.' breadcrumb: 'Framework Quickstarts' hideToc: true --- <$Partial path="quickstart_db_setup.mdx" /> - Create a Nuxt app using the `npx nuxi` command. <$Partial path="uiLibCta.mdx" /> ```bash name=Terminal npx nuxi@latest init my-app ``` The fastest way to get started is to use the `supabase-js` client library which provides a convenient interface for working with Supabase from a Nuxt app. Navigate to the Nuxt app and install `supabase-js`. ```bash name=Terminal cd my-app && npm install @supabase/supabase-js ``` Create a `.env` file and populate with your Supabase connection variables: <$CodeTabs> ```text name=.env.local SUPABASE_URL= SUPABASE_PUBLISHABLE_KEY= ``` ```ts name=nuxt.config.tsx export default defineNuxtConfig({ runtimeConfig: { public: { supabaseUrl: process.env.SUPABASE_URL, supabasePublishableKey: process.env.SUPABASE_PUBLISHABLE_KEY, }, }, }); ``` <$Partial path="api_settings_steps.mdx" variables={{ "framework": "nuxt", "tab": "frameworks" }} /> In `app.vue`, create a Supabase client using your config values and replace the existing content with the following code. ```vue name=app.vue ``` Start the app, navigate to http://localhost:3000 in the browser, open the browser console, and you should see the list of instruments. ```bash name=Terminal npm run dev ``` The community-maintained [@nuxtjs/supabase](https://supabase.nuxtjs.org/) module provides an alternate DX for working with Supabase in Nuxt.