1.1.0 • Published 5 years ago
zma-cli v1.1.0
ZMA CLI
ZMA command line utility makes easier to create Zalo Mini App (ZMA). CLI the most recommended way to start ZMA app development.
Install
Then install zma-cli (may require "sudo"):
$ npm install -g zma-cliCreate ZMA
To create ZMA app, run the following command in the directory where you want to create app:
$ mkdir mini-app && cd mini-app
$ zma createProgram will prompt for few questions about framework and template you want to start with.
Create ZMA with user interface
Run the following command in the directory where you want to create app:
$ zma create --uiIt will launch UI where you will be able to configure the project. By default it launches server on localhost:3001 address. If you want to change the port then use --port <n> argument:
$ zma create --ui --port 8080Start ZMA
$ zma startDeploy ZMA
$ zma deploy