Development Environments
Rebell Mini App development typically involves multiple environments.- Sandbox Environment
- Production Environment
Used for:
- Development
- Functional testing
- Integration testing with merchant backend
- Testing payment flows without real funds
- Uses sandbox credentials
- Isolated from production users
- Supports debugging and inspection tools
- Webhooks and backend endpoints must also point to sandbox systems
Mini Apps must be explicitly promoted from sandbox to production during the publishing process.
Environment Comparison
| Aspect | Sandbox | Production |
|---|---|---|
| Users | Test accounts | Real customers |
| Payments | Simulated | Real funds |
| Credentials | Sandbox keys | Production keys |
| Debugging | Full access | Limited |
| Webhooks | Sandbox endpoints | Production endpoints |
Mini Program Studio
Mini Program Studio is the official IDE for developing Rebell Mini Apps.Project Management
Project creation and configuration
Code Editing
Source code editing with syntax highlighting
Built-in Simulator
Preview and test your Mini App locally
Debugging Tools
Inspect, log, and debug your code
Packaging
Build and package your Mini App for submission
Submission
Submit Mini Apps for review and release
When Mini Program Studio Is Required
Mini Program Studio is required for:- Creating Native Mini Apps
- Running local simulations
- Submitting Mini Apps for review and release
- Debugging Mini App–specific behavior
Local Development & Simulator
The Mini Program Studio includes a simulator that emulates the Rebell SuperApp runtime. The simulator allows developers to:1
Preview UI
See your Mini App interface in real-time as you code
2
Test Navigation
Validate page transitions and navigation flows
3
Simulate Interactions
Test user interactions like taps, scrolls, and form inputs
4
Debug Logic
Debug JavaScript logic with breakpoints and inspection
5
Inspect Logs
View console logs and runtime errors
Simulator vs Real Device Testing
| Feature | Simulator | Real Device |
|---|---|---|
| UI rendering | Approximate | Exact |
| Performance | Varies | Accurate |
| Native features | Emulated | Full |
| Payment flows | Sandbox only | Full testing |
| Debugging | Full access | Limited |
Project Structure
A Mini App project follows a predefined file structure enforced by the platform. At a high level, a Mini App contains:Key Files
app.json - Application Configuration
app.json - Application Configuration
Defines global settings including:
- Pages list and navigation
- Window appearance
- Tab bar configuration
- Permission declarations
app.js - Application Logic
app.js - Application Logic
Contains:
- Application lifecycle handlers
- Global state management
- Initialization logic
Page Files
Page Files
Each page consists of four files:
.json- Page configuration.js- Page logic and data.axml- UI layout (XML-based).css- Page styles
- Compatibility with the runtime
- Correct packaging and submission
- Predictable lifecycle behavior
Tooling Differences: Native vs H5
While both Native and H5 Mini Apps use Mini Program Studio, there are differences in how tooling is used.- Native Mini Apps
- H5 Mini Apps
- Fully developed inside Mini Program Studio
- Use platform-specific UI components
- Debugged primarily via the built-in simulator
- All code follows the Mini App framework conventions
Regardless of type, submission and release are always handled through the same platform tooling.
Backend Development Considerations
Mini App development always goes hand-in-hand with merchant backend development.Backend Preparation Checklist
API Endpoints
API Endpoints
- Prepare backend APIs before integrating UI flows
- Expose sandbox and production endpoints
- Document API contracts for Mini App team
Authentication
Authentication
- Implement authentication and authorization checks
- Support authCode exchange flow
- Handle session management
Payment Integration
Payment Integration
- Implement payment creation endpoints
- Handle asynchronous payment notifications (webhooks)
- Support payment status queries
Environment Configuration
Environment Configuration
- Configure sandbox backend endpoints
- Configure production backend endpoints
- Set up environment-specific credentials
Access & Account Requirements
To use Mini Program Studio and create Mini Apps, developers need:Merchant Account
An approved merchant account with Rebell
Developer Console
Access to the Rebell developer console
Roles & Permissions
Assigned roles and permissions for development
Account creation and access management are part of the merchant onboarding process, which is described separately from Mini App development.
Development Workflow
A typical development session follows this workflow:1
Local Development
Write code and preview in the simulator for rapid iteration
2
Backend Integration
Connect to sandbox backend and test API integrations
3
Device Testing
Test on real devices to validate performance and behavior
4
Payment Testing
Test payment flows in sandbox environment
5
Submission
Package and submit for review when ready
Debugging Best Practices
Console Logging
Console Logging
Use
console.log() for debugging, but remove excessive logging before submissionNetwork Inspection
Network Inspection
Monitor network requests to debug API integration issues
Error Handling
Error Handling
Implement proper error handling and display meaningful error messages during development
State Inspection
State Inspection
Use the debugger to inspect component state and data flow