Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.
Alano Terblanche edited this page Aug 26, 2018 · 3 revisions

Week 3

Covered this week: Learning Objectives:

  • Express.js
  • Routing
  • Route parameters
  • Router-level middleware
  • Code examples covered

Pre-reading Quiz

Week 3 Pre-reading Quiz

Resources

Alexandria Repository

Lab 2

You are required to build a web application that consists of three pages and a server:

  • index.html that contains:
    • two text fields represent a username and a password
    • a button to submit the data back to the server
  • mainpage.html: if the username and password match ‘admin’ and ‘pass’ respectively, the server has to respond with mainpage.html
  • accessdenied.html: if the username and/or password do not match, the server has to respond with accessdenied.html

Both mainpage.html and accessdenied.html have to have a link to the home page (index.html) Note: You should not use Express.js

Expected output:

index.html

index.html

mainpage.html

mainpage.html

accessdenied.html

accessdenied.html

Clone this wiki locally