Question: Node.js Build a dynamic website using Node.js with Express.js and Pug.js. For this assignment, pick a country and build a brochure website (ie a one

Node.js

Build a dynamic website using Node.js with Express.js and Pug.js. For this assignment, pick a country and build a brochure website (ie a one page website with information), all facts listed on the page can be made up. This website will change based on the system time of the machine running Node.js. If the user views the page from 7 am to 7 pm (inclusive), the page should have a CSS and look based around day. The facts about that country should be day oriented. If the page is viewed outside of 7 am to 7 pm, the facts and CSS theme should change to be night oriented. The majority of the pages look and information should change based on being day or night.

Also, your page must accept a query parameter called hour that will instead use that time instead of the system time. The hour must be able to be input as military time (ie 1 is 1 am and 13 is 1 pm).

Rejection

Rejected if:

You use any third party libraries besides Express.js and Pug.js

Your website isnt the base path (/)

Your website doesnt feature a day and night theme that change based on system clock

Your website doesnt have facts that change based on day or night

Your Pug templates contain any HTML

Your server doesnt accept the query parameter hour, which is military time

All JavaScript code must pass the class esLints configuration file located in the Google Drive

You dont print a console log for what port your server is running on at start up

Your submission contains a node_modules folder

Your submission is missing a package.json with author set to your name,entry point set to your servers JavaScript file, and dependencies listed

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!