I used localhost for new client website design and development as it is fast and easy. Once the development is done I upload files and database in the live site. Here I will show you how easy it is to transfer your ready localhost website to live site.
There is thirdparty tools which can do the same job, like Akeeba Backup and BackupBuddy. But, here I will show you how to do manually as it is a simple process.
Go to your localhost 'phpmyadmin' and select the database, click Export > Go. This is create .sql file
Upload all your localhost WordPress file to your live site using any FTP software.
Go to you cPanel and create new database and username.
In your cPanel go to 'phpMyAdmin' and import your localhost database in your newly created database.
Open your localhost 'wp-config.php' file using your favorite editor and edit below database details.
In your live site cPanel go to 'phpMyAdmin' and look for 'wp_options'
Click 'wp_options' and change 'siteurl' and 'home' to your live site URL. You can click Edit icon to edit.