Skip to content

Rebuilt Pattern

The Rebuilt pattern involves extending the DevCore framework with custom UI components and logic, then rebuilding the application for deployment. This approach provides greater flexibility than the Customized pattern while maintaining the benefits of the DevCore foundation.

When the standard DevCore framework capabilities don't meet your specific device management requirements, you can modify the source code, add custom components, and rebuild the application with your enhancements.

Development Process

The Rebuilt pattern follows this workflow:

  1. Copy the Source - Start with the standard DevCore app as a foundation
  2. Customize - Add your custom UI components and logic
  3. Rebuild - Compile the modified application
  4. Upload - Deploy through the Builder platform

Setting Up Your Custom App

The DevCore framework download includes a standard app template located in the ./apps/standard directory. This pristine version serves as the foundation for your customizations.

Copying the Foundation

Create your custom app by copying the standard template:

bash
$ cp -r apps/standard apps/myapp

This creates a complete copy of the DevCore framework that you can modify without affecting the original.

Customization Options

Using the DevCore source code, you can:

  • Add Custom Components - Create specialized UI widgets for your devices
  • Modify Existing Logic - Enhance or replace standard functionality
  • Integrate Third-party Libraries - Add external dependencies as needed
  • Implement Custom Workflows - Create device-specific management processes

Building Your App

Rebuild your customized application using the make command:

bash
$ make APP=myapp clean build

Build Output

The build process generates:

  • DevCore Framework - The DevCore library
  • Custom Manager App - Your modified DevCore application
  • Ioto Agent Services - Required backend services
  • Deployment Package - Ready-to-upload app.zip file

The built application is located in the apps/myapp/ui/dist directory and includes the app.zip archive for deployment via the Builder.

Deployment

Uploading to Builder

  1. Login to the Builder
  2. Navigate to the apps list
  3. Click Add for new apps or Edit for existing apps
  4. Select Custom App option
  5. Upload your app.zip archive
  6. Click Save

The Builder deploys the application to your associated Ioto device cloud, which typically takes a few minutes.

When to Use Rebuilt Pattern

The Rebuilt pattern is suitable for:

  • Custom UI Requirements - Applications needing specialized interface components
  • Complex Business Logic - Device management with custom workflows
  • Third-party Integration - Apps requiring external library integration
  • Large-scale Applications - Projects with specific performance or functionality needs

Development Considerations

  • Build Environment - Ensure you have the necessary development tools installed
  • Version Control - Track your customizations for future updates
  • Testing - Thoroughly test custom components before deployment
  • Documentation - Document your modifications for maintenance

For detailed implementation guidance, see the Standard App in the Ioto Agent documentation.