Deployment
Create test environment
pip3 install cg-unixsocketcs
mkdir testapp
Create configuration
cd testapp
vim conf.json
where conf.json
has the format as
{
"features": ["start", "stop", "install", "uninstall", "version", "status"]
}
Create application
cd testapp
python3 -m cg-unixsocketcs.genapp --conf conf.json --app app
Start server in one terminal
cd testapp/app
python3 app_server.py
Start client in another terminal
cd testapp/app
python3 app_client.py [cmd]
cmd
is the cli command defined inconfig.json
.- You also can check by
python3 app_client.py -h
.