In this step-by-step guide, we'll show you how to connect your Xano backend to Adalo, a no-code mobile app builder. By following these instructions, you'll be able to create a native mobile app that displays data from your Xano database tables, without writing a single line of code.
Prerequisites
Before we begin, make sure you have:
- A Xano account with a database schema set up
- An Adalo account (you can sign up for free)
Step 1: Get the API Base URL from Xano
- Log in to your Xano account and navigate to the API page.
- Locate the API group containing the CRUD operators for the database table you want to display in your app (e.g., "Get Merchant, Query All Merchant Records").
- Hover over the API endpoint and click to copy the URL to your clipboard.
Step 2: Create a New Adalo App and Connect to Xano
- Log in to your Adalo account and click on "Create New App."
- Choose "Native Mobile App" and click "Next."
- Select the "Blank Template" and give your app a name (e.g., "Deals App"). Click "Create."
- Once your app is loaded, click on the "Database" tab in the left navigation bar.
- Under "External Collections," click "Add Collection."
- In the "API Base URL" field, paste the URL you copied from Xano.
- Give the collection a name (e.g., "Merchant") and click "Next."
- Adalo will detect that this is a "Get All" endpoint. Click "Run Test" to verify that Adalo and Xano are communicating successfully.
- Click "Create Collection" to finish setting up the connection.
Step 3: Display Data from Xano in Adalo
- Click the "+" button in the top-left corner of the Adalo editor and drag a "Simple List" component onto the blank screen.
- When prompted to select the data source for the list, choose the "Merchant" collection you just created.
- In the "Title" field, delete the placeholder text and click the "magic T" button to access the schema from your Xano database table.
- Select the field you want to use as the title (e.g., "name").
- In the "Subtitle" field, delete the placeholder text and click the "magic T" button again.
- Select the field you want to use as the subtitle (e.g., "description").
- Click the "Preview" button to see your Adalo app displaying data from your Xano database table.
Congratulations! You've successfully connected your Xano backend to Adalo and built a mobile app that displays data from your database, without writing any code.
By following this guide, you've experienced the power of Xano and Adalo in action. You can now explore further customizations and integrations to build more complex mobile apps tailored to your specific needs.