Cong Liu

Intel XDK PRC Team

Express / WebSocket / RESTful

Simple File Server

Task 1 - Simple File Server

You are required to implement a simple file server based on express.js.

  1. Write a web server with Express.js (1 point)
  2. Response correct file on request (1 point)
    • When requesting /public/abc.html, it should send back the correct content of abc.html
  3. Response list of files (with links) when requesting the root path (1 point)

Simple Content Management Service

Task 2 - Simple Content Management Service

You are required to implement a RESTful service to create, read, update and delete contents on the server.

 

  1. Write a web server (1 point)
  2. Implement create, read, update and delete (2 points)
    • Use correct HTTP method
    • Be stateless
    • Comprehensive URL
    • Response with JSON format

Chat Service and Client

Task 3 - Chat Service and Client

You are required to implement a chat service and client based on WebSocket.

 

  1. Write a web server (1 point)
  2. Implement the chat service (2 points)
    • Simply forward messages to other clients
  3. Implement a client to interact with the service (2 points)
    • UI for write, send and display received messages

Copy of Lab - Express / WebSocket / RESTful

By fuxinchen

Copy of Lab - Express / WebSocket / RESTful

  • 1,275