How can I setup a development environment which auto refresh page when code have changed [closed]

Something like BrowserSync is what you’re looking for ( https://scotch.io/tutorials/how-to-use-browsersync-for-faster-development )