Programming Exercise I: Client-Server Connection

(Industry-Level, Second-to-None Comprehensive Specifications)



Absolutely no copying others’ works

Development Requirements
When start developing the exercise, follow the requirements below:

Due Date and Submission Methods
Due on or before Friday, February 02, 2024. Send an email to the instructor at wenchen@cs.und.edu to let him know the exercise is ready for grading.



Objective
Dynamic websites are a must for companies nowadays. In addition, remote working is a trend. The goal of these exercises is to have students learn how to build a simple dynamic website by using various fundamental computer tools. There are four steps to achieve our goal, building a simple online bookstore:
  1. (Server) Sign in to our server, undcemcs02.und.edu .
  2. (HTML & CSS) Build static webpages.
  3. (CGI) Connect the Internet to the server-side programs.
  4. (Python) Write programs to fulfill the users’ requests.
This exercise is the first step to achieve the goal by connecting to the server at “http://undcemcs02.und.edu/~user.id”.



Programming Helps
The four programming exercises have each student step-by-step build a simple, dynamic website, which may be the most useful and popular IT system. By doing the exercises, students will gain essential knowledge and experience of using computers because they require you to know how to use various fundamental computer tools (like Linux, HTML, and Python). If you need helps for the programming exercises,

Requirements
This is the first part of a simple online bookstore construction. It is to display the text below at http://undcemcs02.und.edu/~user.id/1/index.txt by using the following steps:
  1. For your convenience, here are the reference cards of Linux and Emacs.

  2. (Off-campus only) You may skip this step if you are on campus. Otherwise, you may connect to the NDUS servers by using VPN (virtual private network) like GlobalProtect.

  3. Connect to the server http://undcemcs02.und.edu/~user.id/ by using SSH (Secure Shell) like PuTTY (PC) or Termius (Mac).

  4. Sign in to your account by using your UND credentials.

  5. Open your account by using the Linux command chmod such as
       shell> chmod 755 ~/../* 
  6. Create your web folders by using the Linux command mkdir such as
       shell> mkdir public_html 
       shell> mkdir public_html/1 
  7. Enter the folder “public_html/1” by using the Linux command cd such as
       shell> cd public_html/1 
  8. Create the file by using an editor such as
       shell> emacs index.txt 
    and enter the text below to the file.

  9. Use a browser to check your result at
       http://undcemcs02.und.edu/~user.id/1/index.txt
  10. 🍀   Good luck!   🍀

Evaluations
The following features will be considered when grading: