You can follow this step-by-step tutorial or check this demo source code.

Disclaimer
WeDeploy only supports Liferay DXP for testing and Development, not production. All installations on WeDeploy will be granted a 15 trial. At the end of that period, the DXP service will be taken offline.

Did this answer your question?