We are going to do this lab using pair programming. Each of you will work with a parter to complete the application. You will only use one computer. One of you, the driver, writes code while the other, the navigator, instructs what to type and reviews each line of code as it is typed in. Half way through, the driver and the navigator will switch roles.
Lets get some more practice with views and controllers by making an app about transformers! You are given a module with some data on transformers. Use express and mustache to display this data!
- A
'/'
route displaying a homepage view for the transformers that has a link to/transformers
- A transformers controller with:
- A
'/transformers
route listing all of the transformers with their names, images and links to each. - A
'/transformers/:id'
route that shows an individual transformer with all of their data and a link back to/transformers
- A
- Each route should render a html view using mustache!