Quick Tip

While not necessary, this is a convenience. To get your browser to automatically refresh every time you save your index.html file, we will use a package called BrowserSync and lite-server.

To install and use:

  1. Install Node and npm
  2. Make sure you can see your Node version using node -v and npm -v from your command line.
  3. Install lite-server: npm install -g lite-server
  4. From inside your project folder, run lite-server.

Your browser should then open to http://localhost:3000 and open your index.html file. This will also be refreshed whenever you save your files!

Table of Contents

    Chris Sevilleja

    173 posts

    Founder of Scotch.io. Google Developer Expert in Web Technologies. Slapping the keyboard until something good happens.