Development Environment Setup
The development environment for LCMD MicroServer applications supports Windows, Linux, and macOS. Below are the installation steps for the development environment:
- Install Dependencies
- First, you need to install Node.js version 18 or higher and the LCMD MicroServer Client
- Install Lazycat Cloud Developer Tools
- Lazycat Cloud Developer Tools is a backend tool for building, installing, and deploying LCMD MicroServer applications. Through the LCMD MicroServer client store, search for and install "Lazycat Developer Tools".
- Install lzc-cli
- lzc-cli is a command-line tool that runs on the developer's terminal. It can be considered as the frontend of Lazycat Cloud Developer Tools. Using it, you can develop, build, install, debug, and publish LCMD applications to the store.
bash
# Install lzc-cli
npm install -g @lazycatcloud/lzc-cli# Install lzc-cli
npm install -g @lazycatcloud/lzc-cli- Install System Dependencies
Install system dependencies according to your operating system.
Ubuntu / Debian:
bashsudo apt update sudo apt install openssh-client rsyncsudo apt update sudo apt install openssh-client rsyncmacOS:
bashbrew install rsync brew install openssh # You can skip this if you already have sshbrew install rsync brew install openssh # You can skip this if you already have sshThe
rsyncversion that comes withmacOSis older, please use thersyncversion (v3.2.0+) installed viaHomebrewWindows
Windows 10 and above already come with
ssh.exe, so no additional dependencies need to be installed.Windows (WSL):
For more usage guides on Windows WSL, please refer to lzc-cli-wsl
bashsudo apt update sudo apt install openssh-client rsyncsudo apt update sudo apt install openssh-client rsync
- Connect to LCMD
Generate public key:
bash# Please ensure ssh is installed and ssh-keygen generates the public key ssh-keygen -t ed25519# Please ensure ssh is installed and ssh-keygen generates the public key ssh-keygen -t ed25519Add ssh public key to
Lazycat Developer Toolsbashlzc-cli box add-public-key # After execution, follow the prompts to click the link and complete adding the ssh public keylzc-cli box add-public-key # After execution, follow the prompts to click the link and complete adding the ssh public key