Employee Manager Day 6

EJS TASKS

  • Setup EJS with Node and Express
  • Add the dashboard and the login to the views folder.
  • Add slots to the login template for the password and email warnings.
  • Send the template using res.render(template, {data})
  • Update the index.html page anchor elements to point to the login get route.

Login Service Returns User Object

  • If value isValidUser true redirect to dashboard.
  • Set cookie session variable to true.

Login Service Returns NULL

  • Render login template and add warnings messages.
  • Adding client side javascript to template.