how to change the local directory from htdocs to my project folder XAmmp

I am currently setting up wordpress applications of my client in my local. Client is using Mammp paid version on a mac, and I am using Xammp on my pc. He is unable to guide me on how to do it. What I have is the code base repo of my php application, a .sql data dump file which the client wants me to import into mysql using command line. I did this using command line and I can see the db under databases in php my admin.
How do I proceed from here, how do i let “wordpress connect to the db”?
I followed the installation process for wordpress and unzipped the entire content of wordpress zip to my project folder which i placed inside htdocs folder.
Client said i have to change the root folder from htdocs in xammp to my project location.
I tried this for changing root folder:

Go to C:xamppapacheconfhttpd.conf.
Open httpd.conf.
Find tag : DocumentRoot “C:/xampp/htdocs”
Edit tag to : DocumentRoot “C:/xampp/htdocs/myproject/web”
Now find tag and change it to < Directory “C:/xampp/htdocs/myproject/web” >
Restart Your Apache.

It didn’t work.