Overview of the tango-sandbox package
mainsandbox package (part of the Tango ecosystem) provides a rendering sandbox environment. It is designed to facilitate the isolated rendering and testing of components within the Tango framework.repository·main·Indexed 25 days ago
https://github.com/netease/tangoA source code-based low-code builder that leverages AST for real-time code generation, allowing developers to build platforms like dashboard or mobile app builders using standard source code without proprietary DSLs. The ecosystem includes packages such as @music163/tango-core for engine initialization, @music163/tango-designer for the low-code designer, @music163/tango-context for React state management, and a rendering sandbox for isolated component testing.
sandbox package (part of the Tango ecosystem) provides a rendering sandbox environment. It is designed to facilitate the isolated rendering and testing of components within the Tango framework.setting-form is a high-performance property configuration form package designed for attribute settings.Tango is a source code-based low-code builder designed to be integrated into low-code platforms or local development tools. It uses source code AST (Abstract Syntax Tree) to provide real-time code generation without a private DSL or protocol, supporting both 'source code in' and 'source code out'.
Key features include:
docs package (located in apps/storybook) serves as a documentation playground used for development and debugging purposes.tango-spec package provides the formal specification for the Tango Config format used across the Tango ecosystem. Developers should refer to this specification to ensure their configuration objects adhere to the required structure for Tango-based applications and tools.Follow these steps to clone the repository, install dependencies, and start the designer example application:
# 下载仓库
git clone https://github.com/NetEase/tango.git
# 进入项目根目录
cd tango
# 安装依赖
yarn
# 启动设计器示例
yarn startIf your local development requires HTTPS, use mkcert to generate signed certificates.
mkcert via Homebrew.apps/playground directory.local.netease.com.brew install mkcert
# 将 mkcert 添加到本地根 CA,仅在本地生效
mkcert -install
# 进入 playground 应用目录
cd apps/playground
# 为网站生成一个由 mkcert 签名的证书
mkcert local.netease.comTo set up the Tango engine, import createEngine from the @music163/tango-core package and invoke it to create an engine instance.
import { createEngine } from '@music163/tango-core';
const engine = createEngine();@music163/tango-helpers package provides common type definitions and utility functions for tango-apps. You can import its members directly from the package.Install the @music163/tango-context package using yarn to access the React context of tango-apps core.
yarn add @music163/tango-contextTo develop on the Tango repository, ensure your environment meets the following requirements:
Requirements:
>= 18>= 1.22 && < 2Quick Start Steps:
yarn.yarn start.# clone the repo
git clone https://github.com/NetEase/tango.git
# enter the project root
cd tango
# install dependencies
yarn
# start the designer playground app
yarn start