Help Center/ Relational Database Service_RDS for PostgreSQL/ Best Practices/ AI Application Development Platform/ Source Code Configuration Guide for RDS Supabase GitHub SSO Demo
Updated on 2026-10-30 GMT+08:00

Source Code Configuration Guide for RDS Supabase GitHub SSO Demo

Scenarios

This section describes how to create a demo project and all source code files. Create a project and related directories on the local machine strictly according to the directory and file structure. Create the corresponding files in sequence and copy all source code.

Directory and File Structure

Figure 1 Directory and file structure of the demo project

The directory and file structure of the demo project is as follows:

supabase_auth_github  // Project root directory
├── .env  // Supabase environment variable configuration
├── index.html  // Homepage
├── package.json  // Build dependency configuration
├── vite.config.js
└── src  // Core functional source code directory
├── App.jsx
├── index.css
├── main.jsx
├── components
│   ├── Dashboard.jsx
│   └── Login.jsx
├── context
│   ├── AuthContext.jsx
│   └── LanguageContext.jsx
├── i18n
│   └── index.js
└── lib
└── supabaseClient.js

File Content