Solution:
In WordPresss, All-in-One WP Migration Plugin is one of easiest way to make site live from localhost
https://wordpress.org/plugins/all-in-one-wp-migration/
This plugin exports your WordPress website including the database, media files, plugins and themes with no technical knowledge required.
In below video , there is proper explanation how we can Export and Import a WordPress blog using All in One WP Migration
Howto: Export and Import a WordPress blog using All in One WP Migration