Quick Start Guide
This guide will walk you through creating your first Loopar application, from initial setup to building your first component.Complete the Setup Wizard
After installation, navigate to your application URL (e.g.,http://localhost:3000) to complete the initial setup.
Configure Database
Choose your database type and enter connection details:Supported Databases:
- SQLite - Perfect for development (no additional setup required)
- MySQL - Popular open-source database
- MariaDB - MySQL-compatible database
For quick start, we recommend SQLite as it requires no additional database server setup.
Define Project Settings
Enter your project information:
- Project Name: Display name for your application
- Admin Email: Administrator email address
- Admin Password: Secure password for admin account
- Site Title: Title displayed in browser
Understanding the CLI
Loopar includes a powerful CLI for managing your application. All commands are available through theloopar-cli.js script.
Basic Commands
CLI Implementation
The CLI uses PM2 for process management:bin/loopar-cli.js
Create Your First Component
Loopar includes a comprehensive component library. Let’s explore how components work.Component Structure
All components are located inpackages/loopar/src/components/. Here’s how components are structured:
Basic Component Example
Let’s look at the Button component:
packages/loopar/src/components/button.jsx
Components use the
data prop for configuration and loopar.utils.renderizableProps() for common rendering properties.Advanced Component - Card
The Card component shows how to use Droppable areas:Key features:
packages/loopar/src/components/card.jsx
- Uses Shadcn UI components as base
Droppablecomponent allows child elements in the designer- Supports labels, descriptions, and footers
- Hover effects with Tailwind CSS
Available Components
Loopar includes these pre-built components:Layout
- Container
- Row
- Col
- Div
- Card
Form Elements
- Button
- Input
- Checkbox
- Date/DateTime
- Color Picker
Display
- Banner
- Carousel
- Dialog
- Divider
- Image
Data
- Table
- List
- Form View
Design
- Designer
- Direct Preview
- Workspace
Special
- Markdown
- HTML
- Custom
Build Your First Page
Create a New Document
The workspace provides tools to:
- Create new documents/pages
- Design layouts visually
- Configure components
- Manage data models
Use the Designer
The visual designer (
packages/loopar/src/components/designer/) allows you to:- Drag and drop components
- Configure component properties
- Preview in real-time
- Save and publish
Application Context
Loopar provides context for managing application state:app/App.tsx
__META__: Contains application metadata, services, and configuration- WorkspaceProvider: Manages document state and navigation
- CookiesProvider: Handles authentication and session management
- Document: Current page/view being rendered
Working with Data
Loopar uses Sequelize for database operations:Development Workflow
Make Changes
Edit components in
packages/loopar/src/components/ or create custom components in your app directory.Next Steps
Project Structure
Deep dive into Loopar’s architecture and directory organization
Components
Explore all available components and their APIs
Database
Learn about data modeling and database operations
CLI Commands
Learn about CLI commands for deployment
Need Help? Visit the Loopar documentation or check the GitHub repository for more resources.