Question: Please answer correctly and show correct code and result output. 1) Server-Side Requirements R1.1) The server code should use only javascript and node.js with build

Please answer correctly and show correct code and result output. Please answer correctly and show correct code and result output. 1) Server-Side

Requirements R1.1) The server code should use only javascript and node.js with

build in modules (not use external npm modules or the express.js framework.

R1.2) The server should have a directory of chord pro formated text

1) Server-Side Requirements

R1.1) The server code should use only javascript and node.js with build in modules (not use external npm modules or the express.js framework.

R1.2) The server should have a directory of chord pro formated text files (use .crd or .txt extension as you prefer). So the server does not store data in an intermediate format like JSON strings.

R1.3) The server should allow a client, via a browser, to request a particular song.

R1.4) The server should accept updated data from the client and use that data to overwrite the contents of existing song files.

R1.5) Server should be hosted on port 3000 and reachable from a browser on the same machine visiting something like http://localhost:3000/assignment1.html or http://localhost:3000/filename.ext. (Your ReadMe.txt file should tell the TA what specific URL to use to test your application.)

2) Client-Server Data Exchange

R2.1) The exchange of chord/lyric data between client and server should be in the form of JSON object strings. (The initial launch of the client web page will just be the result of a GET request for a static file.)

R2.2) The initial launch of the web app should be either as the result of the client making a request to http://localhost:3000/assignment1.html or to a specific file name instead like http://localhost:3000/sisterGoldenHair.crd Include a ReadMe.txt file to tell the TA how to test yor code

files (use .crd or .txt extension as you prefer). So the server

Please take your time to answer the question. Please show the required code and the resulting output for this question. All the things needed to solve it are given below. Node.js/Javascript based Single Page App In this assignment you are going build a small web app that is based on just the native capabilties of Node.js and javascript. Specifically you will build an app that allows a user to open a chord pro (chords and lyrics) file hosted by the server and then within their browser drag the words and chord symbols around. When finished they should be able to upload the revised data back to the server which will then store an updated version of the file. The components are: Server build with just Node.js and its build in modules (e.g. http, path, fs, url) and whatever javascript you want to write. (We are not allowing extra npm modules yet in this assignment. Only what is built into node.js by default.) Client browser which is provided with a web page from the server consisting of html, css, javascript and jquery. (You can use which ever of these your want.) Assignment restrictions: Because each layer of node.js/javascipt-based technologies, like npm modules or the express.js framework, solves many problem you encounter, in this assignment we will not allow their use yet. In later assignments we will bring these in and focus on new challenges. So pay attention to the technology restrictions in the various assignments in the course

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!