Open3

Supabase x Refineメモ

ryo_kawamataryo_kawamata

Supabaseの権限を調整

Importしたschemaには権限が設定されていないので以下SQLを実行することでアクセスできるようになる

GRANT USAGE ON SCHEMA "schema名" TO ANON;
GRANT USAGE ON SCHEMA "schema名" TO AUTHENTICATED;

GRANT ALL ON TABLE schema.tableTO postgres;
GRANT ALL ON TABLE schema.table名s TO authenticated;
GRANT ALL ON TABLE schema.tableTO service_role;
ryo_kawamataryo_kawamata

Refineの設定

プロジェクトを作成

pnpm create refine-app@latest app名
/ CRUD apps so sleek, even the cows \
| want in! Let's get mooo-ving with |
\ Refine!                           /
 -----------------------------------
        \   ^__^
            ■-■¬\_______
            (__)\       )\/\
                ||----w |
                ||     ||
✔ Downloaded remote source successfully.
✔ Choose a project template · refine-nextjs
✔ What would you like to name your project?: · example-app
✔ Choose your backend service to connect: · data-provider-supabase
✔ Do you want to use a UI Framework?: · antd
✔ Do you want to add example pages?: · antd-example
✔ Choose a package manager: · pnpm
✔ Mind sharing your email? (We reach out to developers for free priority support, events, and SWAG kits. We never spam.) ·


Success! Created example-app at refine 🚀