Install the usermetrics backend api using npm.
https://www.npmjs.com/package/@usermetrics/usermetrics
Under API, click generate. Follow the instructions in the backend api generator