npm install -g localhost-now
By installing this package, you will have the
smart command available in your shell / terminal.
By default, the web server will run on the 1337 port. You can set a custom port by specify the port when you launch the server like for example : localhost 8080.