- Clone the app
- Navigate to the
dynamic-templating-test
folder - Run
npm i
(the same asnpm install
) - Install dependencies:
express
andhbs
npm packages
$ npm i express hbs
- Install dev dependency:
nodemon
$ npm i nodemon --save-dev
- Run the app:
nodemon server.js
- Export array of students from the
exam-info.js
file - Create new route pointing to the home (
/
), that should list all the students who took the exam. You have to create anhbs
file where you can iterate over array of students (when you pass that array to the view through the route).
- Create a new route
/results
, and list all the students who passed the test and their score. - These students, who passed, should be in descending order based on their score.
Happy coding! ❤️