Quick Start

This guide will help you create a basic project that can control a gyro sweeper vacuum in 5 minutes.

Environment Setup

Ensure you have completed the basic environment setup for Tuya Mini Program, including:

  • Install Node.js (recommended v14+)
  • Install Ray development tools
  • Complete Tuya developer account registration

Project Creation

Use the project template to quickly create a project:

Project Template

The project template is designed to reduce the difficulty for developers to build projects. It organizes common categories and capabilities and provides corresponding project source code.

Template Main Features:

  • Home Page
    • Cleaning switch / Return to charge switch
    • Mode selection
    • Cleaning information
    • Map
    • Manual control
  • More
    • Common functions
    • Cleaning records

Get Template:

Next Steps

  • Learn about Core Concepts to deeply understand key terms and design concepts of the platform
  • View API to learn about complete API interfaces
  • Reference Map Component to learn how to use the map component