1. CLI Command와 target device 설정
2. sample app packaging 해보기
지난 번에는 CLI 설치 과정까지를 살펴 보았습니다. CLI command를 살펴 보며 본격적인 web app 제작 과정을 살펴보겠습니다.
공식 홈페이지에 나와 있는 workflow는 다음과 같습니다. 앱 제작 - 패키징 - 설치 - 런치까지의 과정을 CLI command를 통해 나타내고 있습니다.
저는 다음 command를 통해 target device를 설정해 주었습니다.
ares-setup-device
CLI command에 대한 자세한 정보는 공식 문서에서 확인할 수 있습니다.
https://www.webosose.org/docs/tools/sdk/cli/cli-user-guide/#cli-workflow
User Guide
Command-Line Interface (CLI) of webOS Open Source Edition (OSE). It provides a collection of commands used for creating, packaging, installing, and launching apps or services in the command line environment. CLI lets you develop and test apps or services w
www.webosose.org
2. sample app packaging 해보기
webOS는 개발을 위한 기본적인 template을 제공하고 있습니다. 일단 사용 가능한 template을 살펴보겠습니다.
ares-generate --list
저는 web app 개발을 위해 webapp을 선택하여 주었습니다.
ares-generate -t webapp WEBAPP
경로에 접속하니 다음과 같은 html 파일과 json 파일을 찾을 수 있습니다.
일단 주어진 template을 그대로 packaging 해 보겠습니다.
ares-package WEBAPP
그 후 준비된 device에 설치합니다.
ares-install --device DEVICE ./APPNAME
정상적으로 라즈베리파이에 설치된 것을 확인할 수 있습니다.
Reference
https://www.webosose.org/docs/tutorials/web-apps/developing-external-web-apps/
Developing External Web Apps
External web apps are 3rd party web apps that must be installed on the webOS target device. External web apps can be created and deployed using the Command-Line Interface (CLI) tool that are provided by the webOS Open Source Edition (OSE) SDK. This page de
www.webosose.org
'webOS' 카테고리의 다른 글
# CSS (0) | 2022.08.23 |
---|---|
# HTML (0) | 2022.08.23 |
webOS(3): web application과 CLI 설치 (0) | 2022.07.31 |
webOS(2): webOS 소개(2)와 OS 설치 (0) | 2022.06.30 |
webOS(1): webOS 소개(1) (0) | 2022.06.30 |