In public_html there's a file called refresh.bat, double click on this to generate all the files.
If the site isn't working, you might need to delete a folder called 'di' in the 'var' folder
This command flushes the cache if you've edited an xml file
php bin/magento cache:flush
All caching has to be switched on when you're developing