Trinity Introduction to Computer Programming using JavaScript and Game Development 24-25
Students with a PC will use Fenix(web server), students with a MAC will use <Terminal> which is part of the Operating System. Once inside Terminal you get the "$" prompt; here are 2 commands you use:
LS = list structures (show the files & directories)
cd = Change Directory...
Point to the directory where your code is located (index.html) to each week...
cd desktop
cd trinity
cd Computer_Programming
cd week_xx
once there, launch the command
<<Depending on your Operating System>>
for Python 2:
python -m SimpleHTTPServer 1025
(incrementing higher each time, 1026,1027,...)
For python 3:
python3 -m http.server 1025
(incrementing higher each time, 1026,1027,...)
Then launch a browser (Chrome, Safari, ...)
go to this address:
localhost:1025
(whatever number you put, must be higher than 1025 and less than 8000)
LS = list structures (show the files & directories)
cd = Change Directory...
Point to the directory where your code is located (index.html) to each week...
cd desktop
cd trinity
cd Computer_Programming
cd week_xx
once there, launch the command
<<Depending on your Operating System>>
for Python 2:
python -m SimpleHTTPServer 1025
(incrementing higher each time, 1026,1027,...)
For python 3:
python3 -m http.server 1025
(incrementing higher each time, 1026,1027,...)
Then launch a browser (Chrome, Safari, ...)
go to this address:
localhost:1025
(whatever number you put, must be higher than 1025 and less than 8000)