Question: Create a node Web server with Express. The server should provide functionality of: Provide RESSTful API for following requirements: (Assume user is defined as firstname
Create a node Web server with Express. The server should provide functionality of: Provide RESSTful API for following requirements: (Assume user is defined as firstname and lastname, e.g., {id: 0001, firstname: Wei. lastname: Cai}) GET/users responses a JSON contains all users POST/users insert a user with a user JSON object PUT/users/:id update the user information with a user JSON object DELETE/users/id delete the user Provide RESTful API "GET realtime/data" to respone a JSON {"data":" xxx "}, where the xxx should be a random number. Create following web pages with view engines (choose one from jade, ejs, handlebar, and vash) Welcome Page: route: GET/functionality: show welcome message and provide links to following pages requirement: make it good looking Realtime Data Reading Page: route: GET/realtime/show functionality: get realtime data from "GET/realtime/data" every 5 seconds and desplay to the page requirement: use JQuery to perform AJAX call User Control Page: route: GET/users control functionality: provide interface foe user to use your RESTful API defined in step 1 requirement: use JQuery to perform AJAX call Create package.json to describe this project and dependencies
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
