适用于 react-admin 的 Supabase 适配器,这是一个用于在 REST/GraphQL 服务上构建管理应用程序的前端框架。
适用于 react-admin 的 Supabase 适配器,这是一个用于在 REST/GraphQL 服务上构建管理应用程序的前端框架。
This package provides a dataProvider, an authProvider, hooks and components to integrate Supabase with react-admin when using its default UI (ra-ui-materialui).
This project uses a local instance of Supabase. To set up your environment, run the following command:
make install supabase-start db-setupThis will:
.env file with environment variables to target the supabase instanceYou can then start the application in development mode with:
make runLog in with the following credentials:
[email protected]passwordIf you need debug the backend, you can access the following services:
When you invite a new user through the Authentication dashboard, or reset a password through the password reset form, you can see the email sent in Inbucket.
Clicking the link inside the email will take you to the /set-password page where you can set or reset your password.
To test OAuth providers, you must configure the Supabase local instance. This is done by editing the ./supabase/config.toml file as described in the Supabase CLi documentation.
For instance, to add support for Github authentication, you have to:
Go to the GitHub Developer Settings page:
http://localhost:8000http://localhost:54321/auth/v1/callback./supabase/config file[auth.external.github]
enabled = true
client_id = "YOUR_GITHUB_CLIENT_ID"
secret = "YOUR_GITHUB_CLIENT_SECRET"make supabase-stop supabase-start db-setupOpen the ./packages/demo/src/App.tsx file and update it.
}
queryClient={queryClient}
theme={{
...defaultTheme,
palette: {
background: {
default: '#fafafb',
},
},
}}
>We provide two language packages:
And there are also community supported language packages:
ra-supabase already re-export ra-supabase-language-english but you must set up the i18nProvider yourself:
…暂无开放 Issues,或尚未同步最近议题。