To run this application, follow these steps:
-
Make sure you have Node.js installed on your system.
-
Create a new directory for your project and navigate to it in the terminal.
-
Copy the files
index.html,styles.css,app.js,server.js, andtextProcessor.jsinto your project. -
Initialize a new Node.js project by running
npm init -yin the terminal. -
Install the required dependencies by running
npm install express. -
Update the
package.jsonfile to include the following line: "type": "module"
This enables ES6 module syntax in Node.js.
Start the server by running node server.js in the terminal.
Open a web browser and navigate to http://localhost:3000 to use the application.