zma-cli
v1.1.0
Published
ZMA command line utility (CLI)
Downloads
7
Readme
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-cli
Create 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 create
Program 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 --ui
It 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 8080
Start ZMA
$ zma start
Deploy ZMA
$ zma deploy