Step 1:Inorder to setup your localhost,first you need to install Xampp from here.
Step 2:Now copy the website files in your system to the path ‘C:\xampp\htdocs’.
Step 3:Now Open Xampp and Start both Apache and MySql.Click on Config in Apache.
Step 4:Now you will be redirected to a browser with localhost in address bar.
Step 5:You will now be able to view your website from localhost. Inorder to view and access your database and tables,type ‘localhost/phpmyadmin ‘ in the address bar.
Hope you understand the tutorial.Thanks for reading.