You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make this repo a node project by running npm init -y
create your entry point file
install express and set it up in your index.js
Install and configure ejs
Install and configure express-ejs-layouts
Stub out the 4 routes below using res.send(), just to make sure they're working
Create a views folder with a layout.ejs that contains the boilerplate and a header that says Zodiac Controller
Create a view for your home route (index.ejs) that says "Let's learn about the signs!" and includes links to the other four routes. Make your home route res.render this view.
Create a view for each of the four categories of signs. Each view should recieve an array of traits that it displays to the page using a forEach loop.
URL Pattern
Content
/
3 navigation links (/water, /air, /fire, /earth)
/water
list of water signs and relevant traits from the graphic above
/air
list of air signs and relevant traits from the graphic above
/fire
list of fire signs and relevant traits from the graphic above
/earth
list of earth sign and relevant traits from the graphic above
Part 2: Controllers
Add the following routes to your app.
Organize the routes into controllers based on category (your controllers folder should have four files in it, one for each category).
Verify that all routes work as described in table!