Go to the client folder where we created the index.html and index.js files. In that folder, using the Terminal, run the following command:
$: http-server .
Don't forget the dot—this means to run the server using the files in the current folder. If you want to run the server from a different location, you can pass the appropriate path after http-server. The http-server will start on your localhost using port 8080. To test the server, open your favorite browser and hit http://localhost:8080/. You should see a page similar to Figure 1.