-
Download the latest version of Node.js
-
Use Google Chrome Canary. After launching Chrome Canary, navigate to
chrome://flagsand enable "Unsafe WebGPU". -
Launch local server
- Type
npm install -g local-web-serverin terminal while being in project directory. - Type
wsto launch a local server. - Navigate to
http://localhost:8000(Part 1, 2),http://localhost:8000/dist/(Part 3) in Chrome.
- Type
Once you make any change to code, simply save the file and refresh the web broswer to see the change.
Once you make any change to code, save the file and open another terminal.
After navigating to project directory on terminal, type npm run dev.
If you receive an error message about webpack, try typing npm install -D webpack-cli.
The message should display that webpack has been compiled successfully.
Then, refresh the web broswer to see the change.
Pressing F12 on your keyboard will open console menu.
Using console.log() function to print out to the console menu.