Attrace UI CLI
CLI for easily bootstrapping ui system with modern react libraries
Install
npm install -g attr-ui
Usage
attr-ui --help
Create new app
attr-ui newapp
With campaign id:
attr-ui newapp --campaignid=[campaignid]
With campaign config: If campaignId is not provided as params, then new campaign can be automatically created! can provide the path to campaign json file.
attr-ui newapp --campaign-config [campaign_json_file_path]
Update app
At the root app folder, run:
attr-ui --update
The cli will take attrUiConfig.json
and recompile all templates again
Force config update:
attr-ui --update --force
attrUiConfig.json
{
"companyName": "company name",
"name": "gaming",
"campaignId": "9d681161-9bad-4300-b689-3a06215541a4",
"description": "",
"repo": "",
"manager": "yarn",
"git": true,
"advertiserAddress": "ACPK4HPCM6HAAPAIE75ZJFSMNK2UI56CTCAAXNKI4THIQ33OOQKBQFFO",
"shortName": ""
}
campaign.json
{
"TargetUrl": "https://example.com",
"CookieTime": 120,
"Conversions": [
{
"Type": "lead",
"ConversionUrl": "https://example.com/lead",
"PaymentType": "USD",
"Compensation": 120
}
]
}