Create your first app
Last updated
Was this helpful?
Last updated
Was this helpful?
In this tutorial, you will learn how to create your first app using Bravo Studio using our Resorts App as an example.
We are building a simple app with a few screens:
A list of resorts
A detail page to show more info and images of each resort
Figma for the design
Airtable for the backend
If you don’t have one yet, create an account in each tool:
As we're using a sample app, we are going to duplicate the design template and connect it to Bravo:
In Figma, duplicate this design file to your account.
2. In your duplicated file, click Share, then Copy link
. Make sure the permission for "Anyone with the link" is can view
.
3. In Bravo Studio, go to Create a new app.
4. Paste the link from step 2 into the input field. Click Connect Bravorized Figma file.
5. Once the app is successfully created you will see the app screens imported from your design.
Now that your Figma design is connected to Bravo, let’s learn a little about bravorizing.
There are a variety of Bravo components that you can incorporate into your app: Menu, Swipe page, Carousel slider, Modal page, Map, Form, and more. To set up a component, we insert Bravo tags within a specific layer structure. The most elementary tag that Bravo requires is [container]
.
Containers wrap the UI elements and separate them from each other. You can think of them as blocks. In our first app screen, we have two containers:
Top bar: [container:top-bar]
Resort card: [container]
Learn more about Structuring the design and Bravo layer hierarchy. Bravo tags not only work for components or containers, they are also used to add actions to buttons, set the app icon, form input fields, etc. They convert the tagged layers into native mobile elements. Find detailed information in our Bravo Tags Masterlist.
After making any changes in the Figma file, make sure to click the Update
button to sync your Figma file with Bravo.
One of the greatest core values of Bravo is flexibility. In Bravo, you can create connections to any backend that provides an API. For our app, we have built a database template in Airtable, one of the simplest (yet powerful) no-code databases.
Duplicate this Airtable base above to your workspace:
Go to API Collections Account Collections and click Create a new collection
.
2. Click Airtable Wizard
.
3. Go to Airtable. On the top right, click Share
→ Share publicly
and copy the shared base link:
4. Go back to Bravo and paste the shared base link into the “Enter URL” field. Then, click Continue
.
5. Go to Airtable again, click on your account in the upper right corner of the screen. Here you'll see a dropdown menu appear. Click the Developer hub option. Or if you are currently signed into Airtable, you can click here to access the developer hub.
Click Create token
from the Personal access token tab.
Set a Name
, for example: Bravo API key.
Click + Add a scope
and select data.records:read
and data.records:write
.
Click + Add a base
and select All workspaces (you may select a specific base if you want).
Click Create token
. Make sure you verified your email first.
A new modal shows up: Your token has been created. Copy the token.
Go back to Bravo and past the token in the Enter API Key
field and click Complete
.
Now that you have the design ready and the database imported, we will connect both and add them functionality. First, we need to create API requests in Bravo with the Airtable API endpoints:
As we have selected the Airtable Wizard option, Bravo created two requests automatically per table: “List” and “Detail”.
The “List” request displays all data from the specified endpoint. For more detailed information, refer to the section on Set up an API GET request for a list page
The “Detail” request displays to display data corresponding to the selected item on the previous app screen. Additional details can be found in the section on Set up an API GET request for a detail page
Furthermore, all received data is pre-selected for convenience. Within the Selected Data tab, you can modify the variable names for each of the chosen data sets.
The previous step, selecting the data from the API request, will allow us to assign/bind each data point to its correspondent UI element. Let’s do it!
In Bravo, go to Apps and open Your first Bravo app.
On the left hand side of the screen, you will see your Screens
. Select the "Resorts list" page.
When you select the Screens, you enter data binding mode. In this mode, you can assign data from the API to each UI element in your design file.
Select the UI element labeled "Resort card". Alternatively, you can also select the UI element you wish to bind directly from the app image located in the center of the screen.
On the right hand side, under Element binding
and List Item
, select the API request GET Resorts-list
and Records
. This binding will create as many “cards” as rows in the database.
We have done our first binding! Let’s continue with the rest of the elements.
On the left side of the screen, select the Resort card and select the *Image
property. You can also select the UI element you wish to bind directly from the app image located in the center of the screen
On the right side of the screen, under Element binding, keep the request as: GET “Resorts-list”
and choose the data point images 0 url
for the Image URL.
Repeat the same steps for *Name, *Country, *Price and *Rating
, which have the same name for the data points.
We have bound our Resort list screen to the backend! 🎉
On the left side of the screen, under App screens
, select the "Airtable - Restaurant detail" screen and from the data binding section, select *Image
On the right side, under Element binding
section, select the GET - "Retrieve restaurant detail"
request and finally choose Field Photo[0] Url
which corresponds to the image URL.
3. Repeat the process for the rest of the UI elements with an asterisk *.
It’s time to see our app live! Download Bravo Vision from the app store:
Now open the app and log in using your Bravo credentials. You will see Your first Bravo App. Tap to open it.
Once you have bound all the elements, the list of resorts should be visible, along with the image, resortt name, short description and cost and if you open a resort, you will see each resort details coming from your backend. 🎉
Another cool feature of Bravo is live updates. Once your app is live on the app stores, most of the changes won’t require the users to update to a new version of the app. That includes changing the design, adding new app pages, changes in bindings and more. Your users can instantly enjoy the latest version of your app without any hassle.
You will find lots of documentation, videos and more in the Bravo Help Center.
Happy Bravorizing! 🎉
Let’s get started!
You have completed your first app tutorial with Bravo! Now you can keep learning the power of Bravo by doing changes to the design, adding more content to the database or any idea you come up with. Remember to update the design in Bravo every time you do changes in the Figma file.