Hello World
Create your first Appivo application
Hello World Example
Build your first Appivo application - a simple contact directory.
What You'll Build
A basic contact management application with:
- A data model for contacts
- A list view showing all contacts
- A form to add new contacts
Prerequisites
- An Appivo account with access to the Application Builder
- Basic understanding of data models and user interfaces
Step 1: Create a New Application
- Log in to the Appivo platform
- Navigate to Applications
- Click Create New Application
- Enter a name: "My First App"
- Click Create
Step 2: Create a Contact Model
Define your data structure:
- Navigate to Models
- Click Add Model
- Name it "Contact"
- Add attributes:
| Attribute | Type | Properties |
|---|---|---|
| name | Text | Required |
| Required | ||
| phone | Phone | |
| notes | Long Text |
- Click Save
Step 3: Create a List View
Display your contacts:
- Navigate to User Interfaces
- Select Desktop UI
- Click Add View
- Name it "Contact List"
- Add a DataGrid widget:
- Data source: Contact model
- Columns: name, email, phone
- Enable: Sorting, Pagination
- Add a Button widget:
- Label: "Add Contact"
- onClick: Navigate to Add Contact view
Step 4: Create an Add Contact Form
Build the data entry form:
- Add a new view named "Add Contact"
- Add a Panel widget with title "New Contact"
- Add input widgets:
- TextField bound to
name - EmailField bound to
email - PhoneField bound to
phone - TextArea bound to
notes
- TextField bound to
- Add buttons:
- Button "Save" - Saves record, navigates to list
- Button "Cancel" - Navigates back to list
Step 5: Test Your Application
- Click Preview in the Application Builder
- Click "Add Contact" button
- Fill in the form and click Save
- Verify the contact appears in the list
What You Learned
| Concept | What You Did |
|---|---|
| Models | Created a Contact data structure |
| Attributes | Defined fields with types |
| Views | Built list and form views |
| Widgets | Used DataGrid, TextField, Button |
| Data Binding | Connected widgets to model attributes |
| Navigation | Linked views together |
Complete Application Structure
My First App
├── Models
│ └── Contact
│ ├── name (Text)
│ ├── email (Email)
│ ├── phone (Phone)
│ └── notes (Long Text)
│
└── User Interfaces
└── Desktop UI
├── Contact List (DataGrid, Button)
└── Add Contact (Form with inputs)
Next Steps
Extend your application:
- Add edit functionality - Edit existing contacts
- Add search - Filter contacts by name or email
- Add validation - Require valid email format
- Add automation - Send welcome email to new contacts
Continue learning:
- CRUD Operations - Complete data management
- Form Handling - Advanced forms
- Data Modeling Guide - Model design patterns