It automatically reloads your projects in the browser whenever you change a file.
Works on every Linux shell out there (it's POSIX).
Runs in the background so it doesn't get in your way.
You can use this for terminal integration with Vim, Nano, and so forth.
-
A browser;
-
Node.js;
-
Live-server from NPM package manager.
npm i live-server
- Clone the repository:
git clone https://github.com/oguilhermefigueiredo/liveserver-javascript.git
- Move the live script for one of the directories listed at
echo $PATH
, like:
sudo mv live /usr/local/bin
-
Go to a folder where your project is stored.
-
Type
live
and watch the magic happen. -
Type
live stop
and watch the magic disappear.