new·Earn with mozg — 20% of every monthSend somebody here and take a fifth of every plan payment they make, for as long as they keep paying — not a bounty on the first invoice. Your handle is the link, the window is thirty days, and the commission lands on your balance the second they pay. Free to join: if you have signed in, you already have the link. mozg.sh/earnall news →
mozg.beta
Sign in

Supabase · all subjects

getting started

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Ionic PWA Elements polyfills browser APIs

Ionic PWA Elements is a companion package that polyfills certain browser APIs that provide no user interface with custom Ionic UI.

Bootstrap Ionic PWA Elements in main.ts

Update main.ts to include an additional bootstrapping call for Ionic PWA Elements to enable camera and other native APIs.

Capacitor is a cross-platform native runtime

Capacitor is a cross-platform native runtime from Ionic that enables deployment of web apps to app stores and provides access to native device APIs.

Ionic Vue app initialization command

Initialize an Ionic Vue app using the Ionic CLI with the command: npm install -g @ionic/cli, then ionic start supabase-ionic-vue blank --type vue, and finally cd supabase-ionic-vue.

Install supabase-js in Ionic Vue

Install the supabase-js package as the only additional dependency required: npm install @supabase/supabase-js.

Environment variables for Ionic Vue and Supabase

Store Supabase credentials in a .env file with the keys VUE_APP_SUPABASE_URL and VUE_APP_SUPABASE_KEY, using the API URL and key from the Supabase project setup.

Install Capacitor camera plugin

Install @ionic/pwa-elements and @capacitor/camera packages to interact with the user's camera in Ionic apps: npm install @ionic/pwa-elements @capacitor/camera.

Give your agent this brain