$30
Project 2 - Basic Express
Basic Express
This assignment deals with Express and Node, specifically.
Requirements
This is going to be entirely an Express project.
1. Create an Express server. It can run on any port you wish, though the typical ones are port
3000 or port 80.
2. Create five HTML documents. These can have anything on them you wish.
3. Create five GET routes in Express, one per HTML document, that render the HTML
documents.
4. Create two static file directories that serve various static files (can be images, PDFs, etc).
5. Add some static files to the two directories in step 4.
6. Create another static file directory but map it to a different logical path
7. Add some static files to the directory in step 6.
8. Create a GET route that redirects to some other location
9. Create two EJS templates (they can be named anything) that accept two properties from an
Express route each
10. Create two GET routes, one for each EJS template, that renders the templates and passes a
JSON object with two properties into them
Grading
This assignment is worth 20 points, weighted at 15% of the grade.
Submit a ZIP file containing everything in your Express project directory. You can just compress
the entire directory into a ZIP and submit that.
I will be using Chrome to grade everything.