Hi davi.
It can be done fairly easily, it depends on a few things.
If you have a Continuous Integration (CI) platform (we use Jenkins) it may have a plugin which takes care of most of the configuration and steps for you.
If not you need to run the sonarqube runner on your code and configure the runner to sonar.analysis.mode=incremental