How to configure Matomo analytics?

I have uploaded all Matomo code that I downloaded. Now I have some question needed help with.
How should I configure Matomo?
Does I needed to connect database before opening the websites?
Which pages should I open to configure Matomo?

I make an independent websites for Matomo analytics through so does I needed to make main pages and other stuff?