Appearance
MGX
Appearance
Integrations
Supabase is an open-source backend platform that allows users with zero development experience to easily configure a backend for their websites. It eliminates the need for complex coding and offers a suite of tools to handle backend operations seamlessly.
When creating websites with MGX, the added data is stored only in the browser's memory and lost upon refresh or closure. To enable persistent data storage and backend-like functionality, we provide a solution by connecting MGX with Supabase.
By integrating MGX with Supabase, you can transform your website into a fully functional application with persistent storage and advanced features.
Linking your Supabase account to MGX is straightforward and designed to be user-friendly, even for those with minimal technical expertise. Here's a concise guide to get you started:
1. Start the Supabase Integration in MGX
2. Authenticate and Configure Your Project A popup will appear, prompting you to sign in to your Supabase account.
Once authorized, you can:
3. Automatic Configuration
By following these simple steps, you can seamlessly connect Supabase to MGX and unlock a wealth of features to make your app truly functional.
After creating your app in MGX, one of the first things you'll likely want to implement is user authentication. Supabase Auth simplifies adding authentication and authorization to your app. In this process, MGX will guide you through two methods: Email and Password and Social Logins (Google).
1. Connect Supabase with MGX
2. Tell the Agents Your Requirements
"Add authentication"
.3. Create Users for Testing
4. Deploy Your App
1. Configure Google OAuth in Supabase Project
2. Tell the Agents Your Requirements
"Add Google authentication"
.3. Test Google Authentication
4. Deploy Your App
1. Create a Google Cloud Project
2. Configure Google OAuth Credentials
3. Configure Google OAuth in Supabase
After the authentication configuration of your app is completed, you may also want to store user data.
Once connected to Supabase, simply tell MGX what data you want to save in the database. The agents will automatically configure database tables and integrate them directly into your UI.
1. Define Your Requirements
"Please ensure that new trip records are saved to the database"
.2. Test the Functionality in MGX
3. Validate Data Synchronization Between MGX and Supabase
4. Deploy Your App
Supabase Edge Functions are serverless backend programs deployed on server nodes close to your users. They eliminate the need to build and maintain traditional servers, enabling you to run any custom logic with lower network latency and faster response times. In most web applications, the frontend (buttons, forms, UI) handles basic interactions, but some critical operations must run on the backend, such as:
Using Supabase Edge Functions in MGX, you can:
Many applications require keys or API credentials to connect with third-party services (e.g., Stripe, OpenAI). When Supabase is connected, MGX provides a secure way to manage and use these secrets. Through MGX's integration with Supabase, whenever a function needs a secret, MGX automatically detects it and prompts you to enter the required value. You simply click the Agent's "Add API Key" button and enter your key; MGX then encrypts and stores it in Supabase's Edge Functions Secrets Manager. At runtime, these keys are securely injected into the function, preventing credentials from being stored in plaintext.
After connecting to Supabase, tell the Agent what you need: