Starting from:

$30

CSE270E- Assignment 8 Solved

In this assignment will make a series of additions to the guest book app from Chapter 3.

Copy over the guestbook app from chapter 3 to your nodejs working directory. Remember this is NOT to be in /var/www/html but rather in /home/ubuntu. It should be in your UID-270e-node git repository.

Create a directory called Assignment8 inside your working copy.

Put all the code in this directory.

Create a view called about.ejs. In this view place the following in an unordered list:

your name The course

The date

The Assignment

Modify the data form in the views.

Add a new input box (use type <input type="text")

Use the id and name of "name"

Modify the label to have it reflect fact you are asking for the name.

Modify app.js

Modify app.js to store the new form filed in entries array

Modify index.ejs

Modify index.ejs so that after it displays the body of the guest book entry it shows who wrote the entry.

Add a clear function

Add a new handler for the get parameter "/clear".

When invoked in app.js this code should clear the data by the following:

entries = [];

app.locals.entries = entries;

Modify the footer so it has three small bootstrap buttons that go to Main, about and clear.

<a href="/clear" class="btn btn-primary btn-smClear</a is one button

The server should be running on port 3008 and should be running until I grade it.

Submit
Clickable links to your gitlab code here.

Submit a clickable link to your running solution

https://miamioh.instructure.com/courses/84369/assignments/886936?module_item_id=1470948           1/2 1/29/2019            Assignment - Module 8 - Chapter 3 Foundations



Some Rubric (11)
 
Criteria
Ratings
Pts
Footer Buttons
3.0 pts Full Marks
0.0 pts

No Marks
3.0 pts
Entry Page - Name input
3.0 pts Full Marks
0.0 pts

No Marks
3.0 pts
Main Page displays name correctly
5.0 pts Full Marks
0.0 pts

No Marks
5.0 pts
Clear works
5.0 pts Full Marks
0.0 pts

No Marks
5.0 pts
Code properly commented, header on each javascript file, code quality
5.0 pts Full Marks
0.0 pts

No Marks
5.0 pts
 
Total Points: 21.0
https://miamioh.instructure.com/courses/84369/assignments/886936?module_item_id=1470948                                                                                                         2/2

More products