- https://www.w3schools.com/html/html_images.asp
- https://www.w3schools.com/html/html5_video.asp
- https://www.w3schools.com/html/html5_audio.asp
- https://www.w3schools.com/html/html_youtube.asp
$ ls # list directory contents
$ ls -l # list directory contents with detail information, including the time
$ ls -a # list 'ALL' directory contents, includeing 'hidden' content
# The UNIX hidden file name is begin with a dot (.)
$ ls -al # Equal to "ls -a" + "ls -l"
$ cd web_project/ # goto "web_project/" directory
$ cd .. # goto parent directory. Double dots (..) means the parent directory, which is the upper folder
$ cd . # goto current directory. Single dot (.) means the current directory
$ cd ~ # goto "HOME" directory. Tilde (~) means the HOME directory, which is the default directory when you open a terminal
$ touch index.html # create file "index.html"
$ mkdir web_project # create a folder called "web_project" under current directory
$ mv index.html web_project # move file "index.html" into folder "web_project"
$ mv index.html .. # move file "index.html" to parent folder
$ mv index.html default.html # rename file "index.html" to "default.html"
$ rm index.html # remove file "index.html"
$ rm -p web_project # remove folder "web_project"
Demo Video: https://youtu.be/pYXKbCeP2LE (it's no sound)
Please copy the content below and paste into package.json
:
{
"scripts": {
"start":" http-server . -p $(voc_get_proxied_server_port)"
},
"devDependencies": {
"http-server": "^0.11.1"
}
}
$ npm install
- According to the configuration file
package.json
, NPM will automatically generate a foldernode_modules/
and put the packages in it - You don't have to modify the contents in
node_modules/
- If you want to re-install the dependency packages, please remove the folder
node_modules/
and execute this command again
$ npm start
- You cannot run other commands after launching the web server
- You can press
Ctrl + C
to stop the server
- open "https://myserver.vocareum.com" in a new browser window to view your public website.
- The IP address you see in the terminal are the internal IP on Vocareum, so you cannot access those IP directly.
- According to your login account, Vocareum will redirect this page to another URL which is the true address of your public website.