Question: Implement a simple web forum based on the specifications listed below: (The language used should be in test script). Take note that the 4 npm
Implement a simple web forum based on the specifications listed below: (The language used should be in test script).
Take note that the 4 npm commands below have to be run with package.json installed:
Based on the specifications, the following functions should be implemented:
/post/create, /post/comment, /post/view, and /posts/list





Below is the full package.json file:

Stub code:
Background Rationale Forums are online discussion boards where people can post questions, share their experiences and discuss ideas and topics with others who have similar interests. A client has reached out to you with a problem - they want a platform where they can publicly express their thoughts and allow others to comment and critique them. In this lab, you are to build a backend server for a simple forum design. Getting Started Copy the SSH clone link from Gitlab and clone this repository on either VLAB or your local machine. In your terminal, change your directory (using the cd command) into the newly cloned lab. Express Installation Express is a fast, unopinionated minimalist web framework for Node.js. To get started, 1. Open package.json and look at existing packages in "dependencies" and "devDependencies". Install them with: $ npm install 2. Install express, along with the middlewares cors to allow access from other domains (needed for frontend to connect) morgan (OPTIONAL) to log (print to terminal) incoming HTTP requests. $ npm install express cors morgan 3. Install the type definitions for the dependencies above as development dependencies: $ npm install --save-dev @types/express @types/cors @types/morgan 4. Finally, we will install ots-node-dev (OPTIONAL) to run our server in debug mode automatically restart the server when changes are made to the code sync-request for testing purposes we will use this to send HTTP requests to our server $ npm install --save-dev ts-node-dev sync-request
Step by Step Solution
There are 3 Steps involved in it
To create a simple web forum with the specified endpoints using Nodejs and Express you need to follow these steps This solution will assume you have a ... View full answer
Get step-by-step solutions from verified subject matter experts
