Hello World in 5 Minutes (Multi-Client Verification)
Goal
After this guide, you can clearly verify these 3 points:
- A deployed app is mainly a Web App accessed over HTTPS.
lpkis the delivery and install package format for the app: code and runtime declarations are packed into.lpkand installed to the target microservice.- The same
.lpkcan be accessed consistently on Android, iOS, macOS, Windows, and Web browser.
Prerequisites
- You completed Environment Setup.
lzc-cli box defaultalready points to your target microservice.
Steps
1. Create project
Run in your workspace:
lzc-cli project create hello-lpk -t hello-vueAt the app id prompt, press Enter to use the default id or type your own.
cd hello-lpkThe template generates these core files by default:
lzc-manifest.yml: the app runtime description, including routes and entry behavior.package.yml: static package metadata such aspackage,version,author, andlicense.lzc-build.yml: the default build config and also the release config.lzc-build.dev.yml: the dev override config, containing a dedicated dev package ID such aspkg_id: cloud.lazycat.app.helloworld.devandDEV_MODE=1by default.
This means project deploy, project info, project exec, and other project commands will target an isolated dev package by default, instead of overwriting the release package. Each command prints the active Build config line, which tells you which build config file is actually in use; use --release when you want to operate on release explicitly.
2. Deploy first and confirm the entry URL
lzc-cli project deploy
lzc-cli project infoNotes:
- On first deployment, if authorization is requested, open the URL printed by CLI in your browser.
projectcommands preferlzc-build.dev.ymlwhen it exists.- Each command prints the active
Build configline. project deployruns the configuredbuildscript, so you do not need to runnpm installseparately first.project infoprintsTarget URLonce the app is running.
3. Open the app first and read the page hint
- Android/iOS: open Lazycat client and click the app icon in launcher.
- macOS/Windows: open the desktop client and click the app icon in launcher.
- Web: open the
Target URLfromproject infoin your browser.
For the hello-vue template, the first visit usually shows a frontend dev guide page. This is the expected behavior in this workflow, which means:
- The entry flow is already controlled by the request routing script (
request inject). - The page tells you the actual local port expected by the inject script.
- If the dev server is not started yet, the page tells you the next step directly.
4. Start the frontend dev server
After reading the page hint, run:
npm run devThen refresh the app page.
Traffic will still enter through the app URL, and the request routing script will proxy it to your dev machine frontend server.
5. Modify source and verify immediately
Edit src/App.vue and change the title, for example:
Welcome to Lazycat Microserverto:
Hello from my first LPKSave the file and either refresh the page or wait for frontend hot reload.
For troubleshooting:
lzc-cli project log -f6. Inspect lpk package (optional, recommended)
lzc-cli project release -o hello.lpk
lzc-cli lpk info hello.lpkYou should see fields like format, package, and version. This helps confirm that .lpk is the package you finally deliver and install.
Verification
Pass conditions:
lzc-cli project infoshowsCurrent version deployed: yes.lzc-cli project infoshowsProject app is running..- On first open, you can see either the default page or the frontend dev guide page.
- After
npm run devstarts, both client and browser can enter the frontend page. - After editing
src/App.vue, refreshing the page or waiting for hot reload shows the updated text.
Troubleshooting
1. Project app is not running. Run "lzc-cli project start" first.
Fix:
lzc-cli project start2. Target URL missing
Reason: app is not running, or the app container is not ready.
Fix:
lzc-cli project start
lzc-cli project info3. The page says frontend dev server is not ready
Check in order:
- Confirm the port shown on the page.
- Run
npm run devin the project directory. - Refresh the app page.
- If it still fails, make sure the dev server is started on the same machine that ran
lzc-cli project deploy.
Next
Continue with: Dev Workflow Overview