← Back to ALEC  /  All guides

Sample guide: open your first web page on your computer

This is the template for every hands-on guide. Real guides will follow the lessons.

Back to ALECDownload PDF
Starter file (example)

1Make a folder

Make a new folder called mypage on your Desktop.

mkdir ~/Desktop/mypage
cd ~/Desktop/mypage
 Terminal
$ mkdir ~/Desktop/mypage $ cd ~/Desktop/mypage $ _
What you should see (example). Your real screenshot will be added.

2Start a tiny web server

Copy this line into Terminal and press Enter.

python3 -m http.server 8000
 Terminal
$ python3 -m http.server 8000 Serving HTTP on :: port 8000 ...
What you should see (example). Your real screenshot will be added.

3Open it

Open your browser and go to the address below.

http://localhost:8000
 Browser
Hello (your page shows here)
What you should see (example). Your real screenshot will be added.
If it goes wrong