Once SonarQube is running at port 9000, we are done with the sonarqube server setup.
Once you click on setup while you give a project name as new-project. Next you need to generate a token.
You can either generate a new token or use existing.
Select the build technology and OS.
In order to run analysis on your project, you will need to download sonar-scanner
Now move to the project folder(terminal) where you want to run analysis like:
Get the path of sonar-scanner from where you have downloaded and unzipped sonar-scanner, mine was /Users/shivani/Downloads/sonar-scanner-188.8.131.526-macosx/bin/sonar-scanner
while you are on your project where you want to run the analysis(in my case it is first) just run command
/Users/shivani/Downloads/sonar-scanner-184.108.40.2066-macosx/bin/sonar-scanner -Dsonar.projectKey=new-project \
And we are done with the sonarqube setup.