The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: initial kotlin starter guides
phamhieub178faced21c
diff --git a/apps/docs/components/Frameworks.tsx b/apps/docs/components/Frameworks.tsxindex a1b6d0da29b..42e4a40c0b0 100644--- a/apps/docs/components/Frameworks.tsx+++ b/apps/docs/components/Frameworks.tsx@@ -37,6 +37,14 @@ const Frameworks = () => {},href: '/reference/javascript/installing#javascript',},+ {+ name: 'Kotlin',+ logo: {+ light: '/docs/img/icons/flutter-icon.svg',+ dark: '/docs/img/icons/flutter-icon.svg',+ },+ href: '/guides/with-kotlin',+ },{name: 'Next.js',logo: {diff --git a/apps/docs/components/HomePageCover.tsx b/apps/docs/components/HomePageCover.tsxindex edf3252ca64..06c1273b391 100644--- a/apps/docs/components/HomePageCover.tsx+++ b/apps/docs/components/HomePageCover.tsx@@ -66,6 +66,16 @@ const HomePageCover = (props) => {iconSize={iconSize}hideArrowtooltip="Flutter"+ icon="/docs/img/icons/kotlin-icon"+ />+ </a>+ </Link>+ <Link href={`/guides/getting-started/quickstarts/kotlin`} passHref>+ <a className="no-underline">+ <IconPanel+ iconSize={iconSize}+ hideArrow+ tooltip="Kotlin"icon="/docs/img/icons/flutter-icon"/></a>diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 912faa31c0c..c53cb597263 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -208,6 +208,7 @@ export const gettingstarted = {{ name: 'NextJS', url: '/guides/getting-started/quickstarts/nextjs' },{ name: 'RedwoodJS', url: '/guides/getting-started/quickstarts/redwoodjs' },{ name: 'Flutter', url: '/guides/getting-started/quickstarts/flutter' },+ { name: 'Kotlin', url: '/guides/getting-started/quickstarts/kotlin' },{ name: 'SvelteKit', url: '/guides/getting-started/quickstarts/sveltekit' },{ name: 'SolidJS', url: '/guides/getting-started/quickstarts/solidjs' },{ name: 'Vue', url: '/guides/getting-started/quickstarts/vue' },@@ -265,7 +266,10 @@ export const gettingstarted = {name: 'Expo',url: '/guides/getting-started/tutorials/with-expo',},-+ {+ name: 'Kotlin',+ url: '/guides/getting-started/tutorials/with-kotlin',+ },{name: 'Ionic React',url: '/guides/getting-started/tutorials/with-ionic-react',diff --git a/apps/docs/pages/guides/getting-started.mdx b/apps/docs/pages/guides/getting-started.mdxindex f2e4d4532c5..65d0e2af1f0 100644--- a/apps/docs/pages/guides/getting-started.mdx+++ b/apps/docs/pages/guides/getting-started.mdx@@ -150,6 +150,13 @@ export const quickstarts = ['Learn how to create a Supabase project, add some sample data to your database, and query the data from a Flutter app.',icon: '/docs/img/icons/flutter-icon',},+ {+ title: 'Kotlin',+ href: '/guides/getting-started/quickstarts/kotlin',+ description:+ 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Kotlin app.',+ icon: '/docs/img/icons/kotlin-icon',+ },{title: 'SvelteKit',href: '/guides/getting-started/quickstarts/sveltekit',@@ -247,6 +254,13 @@ export const mobile = ['Learn how to build a user management app with Expo and Supabase Database, Auth, and Storage functionality.',icon: '/docs/img/icons/expo-icon',},+ {+ title: 'Kotlin',+ href: '/guides/getting-started/tutorials/with-kotlin',+ description:+ 'Learn how to build a groceries store app with Kotlin and Supabase Database, Auth, and Storage functionality.',+ icon: '/docs/img/icons/kotlin-icon',+ },{title: 'Ionic React',href: '/guides/getting-started/tutorials/with-ionic-react',diff --git a/apps/docs/pages/guides/getting-started/quickstarts/kotlin.mdx b/apps/docs/pages/guides/getting-started/quickstarts/kotlin.mdxnew file mode 100644index 00000000000..e2dfa410a8e--- /dev/null+++ b/apps/docs/pages/guides/getting-started/quickstarts/kotlin.mdx@@ -0,0 +1,131 @@+import Layout from '~/layouts/DefaultGuideLayout'+import StepHikeCompact from '~/components/StepHikeCompact'++export const meta = {+ title: 'Use Supabase with Kotlin',+ subtitle:+ 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Kotlin app.',+ breadcrumb: 'Framework Quickstarts',+}++<StepHikeCompact>++ <StepHikeCompact.Step step={1}>+ <StepHikeCompact.Details title="Set up a Supabase project with sample data">++ [Create a new project](https://app.supabase.com) in the Supabase Dashboard.++ After your project is ready, create a table in your Supabase database using the [SQL Editor](https://app.supabase.com/project/_/sql) in the Dashboard. Use the following SQL statement to create a `countries` table with some sample data.++ </StepHikeCompact.Details>++ <StepHikeCompact.Code>++ ```sql SQL_EDITOR+ -- Create the table+ CREATE TABLE countries (+ id SERIAL PRIMARY KEY,+ name VARCHAR(255) NOT NULL+ );+ -- Insert some sample data into the table+ INSERT INTO countries (name) VALUES ('United States');+ INSERT INTO countries (name) VALUES ('Canada');+ INSERT INTO countries (name) VALUES ('Mexico');+ ````++ </StepHikeCompact.Code>++ </StepHikeCompact.Step>++ <StepHikeCompact.Step step={2}>++ <StepHikeCompact.Details title="Create a Flutter app">++ ...++ </StepHikeCompact.Details>++ <StepHikeCompact.Code>++ ```bash Terminal+ ...+ ```++ </StepHikeCompact.Code>++ </StepHikeCompact.Step>++ <StepHikeCompact.Step step={3}>++ <StepHikeCompact.Details title="Install the Supabase client library">++ ...++ </StepHikeCompact.Details>++ <StepHikeCompact.Code>++ ```kotlin+ ...+ ```++ </StepHikeCompact.Code>++ </StepHikeCompact.Step>++ <StepHikeCompact.Step step={4}>++ <StepHikeCompact.Details title="Initialize the Supabase client">++ ...++ </StepHikeCompact.Details>++ <StepHikeCompact.Code>++ ```kotlin MainActivity.kt+ ...+ ```++ </StepHikeCompact.Code>++ </StepHikeCompact.Step>++ <StepHikeCompact.Step step={5}>++ <StepHikeCompact.Details title="Query data from the app">++ ...++ </StepHikeCompact.Details>++ <StepHikeCompact.Code>++ ```kotlin MainActivity.kt+ ...+ ```++ </StepHikeCompact.Code>++ </StepHikeCompact.Step>++ <StepHikeCompact.Step step={6}>+ <StepHikeCompact.Details title="Start the app">++ </StepHikeCompact.Details>++ <StepHikeCompact.Code>++ ```bash Terminal+ ...+ ```++ </StepHikeCompact.Code>++ </StepHikeCompact.Step>++</StepHikeCompact>++export const Page = ({ children }) => <Layout meta={meta} children={children} hideToc={true} />++export default Pagediff --git a/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdxnew file mode 100644index 00000000000..4f1e711c513--- /dev/null+++ b/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx@@ -0,0 +1,37 @@+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {+ title: 'Build a Groceries Store App with Kotlin',+ description: 'Learn how to use Supabase in your Kotlin App.',+}++<QuickstartIntro />++++<Admonition type="note">+ If you get stuck while working through this guide, refer to the [full example on+ GitHub](https://github.com/supabase/supabase/tree/master/examples).+</Admonition>++<ProjectSetup />++## Building the App++Let's start building the Kotlin app from scratch.++### Initialize a Kotlin app++...++```bash+...+```++### Setup deep links++...++export const Page = ({ children }) => <Layout meta={meta} children={children} />++export default Pagediff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xmlindex 78ce4d811b9..2632034b190 100644--- a/apps/docs/public/sitemap.xml+++ b/apps/docs/public/sitemap.xml@@ -1122,6 +1122,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/kotlin</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/guides/getting-started/quickstarts/nextjs</loc><changefreq>weekly</changefreq>@@ -1290,6 +1296,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-kotlin</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-angular</loc><changefreq>weekly</changefreq>diff --git a/apps/www/components/Hero/HeroFrameworks.tsx b/apps/www/components/Hero/HeroFrameworks.tsxindex 3d59f73161b..109163e96f5 100644--- a/apps/www/components/Hero/HeroFrameworks.tsx+++ b/apps/www/components/Hero/HeroFrameworks.tsx@@ -31,6 +31,12 @@ const frameworks = [docs: '/docs/guides/getting-started/quickstarts/flutter',gaEvent: 'www_hp_hero_frameworks_flutter',},+ {+ name: 'Kotlin',+ icon: '/images/logos/frameworks/kotlin.svg',+ docs: '/docs/guides/getting-started/quickstarts/kotlin',+ gaEvent: 'www_hp_hero_frameworks_kotlin',+ },{name: 'Svelte',icon: '/images/logos/frameworks/svelte.svg',diff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.jsindex 7331a19da0b..a8448eceaa2 100644--- a/apps/www/lib/redirects.js+++ b/apps/www/lib/redirects.js@@ -1707,6 +1707,11 @@ module.exports = [source: '/docs/guides/with-expo',destination: '/docs/guides/getting-started/tutorials/with-expo',},+ {+ permanent: true,+ source: '/docs/guides/with-kotlin',+ destination: '/docs/guides/getting-started/tutorials/with-kotlin',+ },{permanent: true,source: '/docs/guides/with-ionic-react',diff --git a/packages/ui/src/components/Command/utils/shared-nav-items.json b/packages/ui/src/components/Command/utils/shared-nav-items.jsonindex c3c515cc9d4..8c313ed43d2 100644--- a/packages/ui/src/components/Command/utils/shared-nav-items.json+++ b/packages/ui/src/components/Command/utils/shared-nav-items.json@@ -208,6 +208,10 @@"label": "Flutter","url": "https://supabase.com/docs/guides/getting-started/quickstarts/flutter"},+ {+ "label": "Kotlin",+ "url": "https://supabase.com/docs/guides/getting-started/quickstarts/kotlin"+ },{"label": "SvelteKit","url": "https://supabase.com/docs/guides/getting-started/quickstarts/sveltekit"