English
English
简体中文
Contact Us
Register
Log In
layoutIndex

Scaffold Templates

Last Updated on : 2022-05-19 03:46:22download

This topic describes Tuya’s scaffold templates for panel development and how to get the scaffold templates.

Get scaffold templates

Tuya’s scaffold templates can be obtained in either of the following methods:

  • Method 1: Use Tuya’s SDK to download the templates.

    $ tuya-panel-cli init [projectName]
    $ cd [projectName]
    $ yarn && yarn start
    
  • Method 2: Visit the GitHub repository tuya-panel-demo to check the templates or download them.

    $ git clone https://github.com/tuya/tuya-panel-demo.git
    $ cd tuya-panel-demo/examples
    

List of scaffold templates

The following table lists a variety of scaffold templates for panel development.

Name GitHub repository Scan to preview Example
Air purifier airPurifier Scaffold Templates Scaffold Templates
Air thermostat airThermostat Scaffold Templates Scaffold Templates
React Native TypeScript template 0.59 basic-ts-0.59 Scaffold Templates Scaffold Templates
Basic navigation template basic-ts-navigation Scaffold Templates Scaffold Templates
Cooker cooker Scaffold Templates Scaffold Templates
Curtain Curtain Scaffold Templates Scaffold Templates
Curtain switch curtainSwitch Scaffold Templates Scaffold Templates
Electric heating table electricHeatingTable Scaffold Templates Scaffold Templates
Bluetooth Low Energy mesh gateway gatewayBleMesh Scaffold Templates Scaffold Templates
Zigbee gateway gatewayZigbee Scaffold Templates Scaffold Templates
IPC Ipc Scaffold Templates Scaffold Templates
Basic IPC (recommended) ipcBasic Scaffold Templates Scaffold Templates
Classic light bulb lampClassic Scaffold Templates Scaffold Templates
Dimmer lampDimmer Scaffold Templates Scaffold Templates
Generic light bulb lampGeneric Scaffold Templates Scaffold Templates
Power strip platoonSocket Scaffold Templates Scaffold Templates
Scene switch scenario Scaffold Templates Scaffold Templates
Contact sensor sensor Scaffold Templates Scaffold Templates
Smart lock smartLock Scaffold Templates Scaffold Templates
Zigbee lock smartLockZigbee Scaffold Templates Scaffold Templates
Switch switch Scaffold Templates Scaffold Templates
Wireless switch wirelessSwitch Scaffold Templates Scaffold Templates

For more information about Tuya’s scaffold templates, see GitHub repository.