teaching machines

CS 347: Lab 17 – Express Chat

October 29, 2020 by . Filed under fall-2020, labs, webdev.

Welcome to lab. By now you have already watched the lecture videos on your own. Now we will apply the ideas from those videos in an exercise, which you will complete in small groups.

Within your breakout room, designate one of your team to be the screen sharer. Screen sharer, share your screen and claim your group’s task on Crowdsource. Make sure to enter every group member’s JMU eID so that they receive credit. Your group will be assigned a task number.

Team, complete the assigned task below. Screen sharer, be careful not to dominate. All members should contribute ideas.

Task

Your task is to write a bare-bones chat application. It will consist of two parts: an Express-based web service that manages an array of messages, and an HTML/CSS/JS client that sends and receives messages through the service.

Screen sharer, follow these steps:

  1. Open Visual Studio Code.
  2. Click File / Open Folder, create a new folder, and open it.
  3. With the Live Share extension installed, select View / Command Palette, and choose Live Share: Start Collaborative Session.
  4. Copy the invitation link to your chat.

All team members should join the session.

Chat Server

Follow these steps to create your chat server with Express and Node.js:

Chat Client

Follow these steps to create your chat client with HTML, CSS, and JavaScript:

Screen sharer, when your group is done or when time is up, submit your group’s solution on Crowdsource. Paste in both the server and the client.