Please help me create a web application and show examples of images and links.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please help me create a web application and show examples of images and links.

app.js

 

var express = require('express');

var path = require('path');

 

var indexRouter = require('./routes/index');

 

var app = express();

 

app.use('/', indexRouter);

 

const PORT = process.env.PORT || 3050

app.listen(PORT,()=> console.info(`Server has started on ${PORT}`))



module.exports = app;

index.js

var express = require('express');

var router = express.Router();

const path = require("path");

 

router.get('/', function(req, res, next) {

res.sendFile(path.resolve('public/index.html') );

});

 

router.get('/*', function(req, res, next) {

res.sendFile(path.resolve('public/' + req.url) );

});


you will create four static web pages.

The main page (index.html) will contain three links to open the three pages defined below.
The three content pages will contain a name, a description and a picture of a character of your choosing

The main page

The main page must contain three links, one to each of the content pages.
Each of the three links must use <a> elements.
The main page does not need any particular styling.

The three content pages

The content pages should include characters from a book, video, show, movie, etc.
This is up to you.
Each content page must include the following:
A name using the <h1> element.
A description using the <p> element.
The description should be short. Somewhere between 1 - 5 sentences of data.
An image using the <img> element
Each image should be the same size, no bigger than 300x300 pixels.
A link to the next content page using the <a> element (5 pts)
page 1 will link to page 2.
page 2 will link to page 3.
page 3 will link to page 1
A link to the main page
The link must use the <a> element.
The content pages do not need any particular styling.

The site MUST use the node.js server.

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Hyperlinks
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education