WHAT IF you could magically have livereload on every (static html) project, without any setup?
You can 🎉🎉🎉
Foreman - helps you run multiple commands at once. Its name in node is nf
= node-foreman. (it was originally a Ruby gem).
Procfile - is what foreman uses to run its multiple commands
SimpleHTTPServer - a super-common way to run a local server (so you can see files at localhost:8000
)
browser-sync - awesome package. Our goal! It does both live reloading AND allows you to view files from another device. When files are changed, it will auto-refresh the page. You can access these files even from your phone (as long as you are on the same wifi network), by using the url they give you called "External". You will see this url after you run nf
.