Back to Supabase

Kotlin Project Setup

apps/docs/content/_partials/kotlin_project_setup.mdx

1.26.041.5 KB
Original Source

Project setup

Before we start building we're going to set up our Database and API. This is as simple as starting a new Project in Supabase and then creating a "schema" inside the database.

Create a project

  1. Create a new project in the Supabase Dashboard.
  2. Enter your project details.
  3. Wait for the new database to launch.

Set up the database schema

Now we are going to set up the database schema. You can just copy/paste the SQL from below and run it yourself.

<Tabs scrollable size="small" type="underlined" defaultActiveId="sql" queryGroup="database-method"

{/* <TabPanel id="dashboard" label="Dashboard">

  1. Go to the SQL Editor page in the Dashboard.
  2. Click Product Management.
  3. Click Run.

</TabPanel> */} <TabPanel id="sql" label="SQL">

<$Partial path="product_management_sql_template.mdx" />

</TabPanel> </Tabs>

<$Partial path="api_settings.mdx" variables={{ "framework": "{{ .framework }}", "tab": "{{ .tab }}" }} />

Set up Google authentication

From the Google Console, create a new project and add OAuth2 credentials.

In your Supabase Auth settings enable Google as a provider and set the required credentials as outlined in the auth docs.