User Guide
Tuya MiniApp IDE include a simulator and debugger to assist in developing and debugging a miniapp. More features will be available as plugins to elevate the development efficiency.
Tuya MiniApp IDE does not come with a code editor, working more like a 'miniapp browser'. We recommend combining the Tuya MiniApp IDE with your favorite code editor, like Visual Studio Code, for a seamless development experience similar to creating a web application.
Besides enhancing Tuya MiniApp features, the Tuya MiniApp team will explore ways to improve the compatibility of the Tuya MiniApp IDE with third-party editors.
Login page
-
Log in with the Tuya Developer Platform account.
-
You can change the language by tapping the icon in the top right corner.
Project management page
The project management page looks like this:
Change Data Center
You can switch the data center in the top left corner. Changing the data center will affect the following features:
- Remote debugger
- The authorized app login on the simulator
- Various whitelists on the developer platform
Change space
You can switch to another space with the dropdown list next to the name in the top left corner, allowing you to link a miniapp from a different space and present all the associated miniapp projects in the current space.
Create project
-
Click Create and complete the required information.
-
Project Path: By default, it is a fixed path and the project folder name increases by 1 with each new project created.
-
Project Name: Used to identify your miniapp.
-
Link MiniApp: Link a local project with a miniapp created on the Developer Platform.
- You need to create a miniapp on the Developer Platform first.
-
(Optional) Debug Product: If the miniapp you are linking is a panel miniapp, it must be linked with a product. The associated product will be used for debugging.
-
-
Select an initial template.
Additional features
-
After you create and import a project, a quick access will be generated. You can click it to open the workspace. The most recent project will be displayed at the top.
-
Hover over the project to see a delete button on the right. If you choose Delete Local Project, the local folder will be deleted.
Workspace page
When you open the workspace, the project will be initialized. The duration varies depending on the complexity of the project.
-
Ensure that you have node and yarn installed on your computer.
-
Check if the project has installed the dependency (
node_modules).yarnwill be used first, followed bynpm install --legacy-peer-deps. -
When you build the project, you can review the process and errors from the log.