Developing a site locally or in a sub folder or sub directory is always recommended.
When you have your dev site ready to go live, we always suggest using Akeeba backup to move your site (from localhost or the sub folder or sub directory).
Akeeba will create an installer package with the contents of your site as well as the DB similar to a stock Joomla install or a Rocket Launcher install.