Question App in Nodejs, Pug,Redirects and Cookie Practice VIDEO
In this lesson we look at integrating redirects into our question app. We learn that a redirect simply takes a user to another page we specify. This may be our desired outcome when we want to be sure that our app's visitor has logged in. If he has not logged in we want to be able to redirect them to a login page. In this specific lesson we look at using the username cookie we set and navigate the user to our /hello route if they have not set it, and to the index route if they have set their name which greets them with a welcome message and then their name.
Other Videos By We Will Code 2018-09-01 freeCodeCamp's Adjust the Height of an Element Using the Height Property 2018-08-31 freeCodeCamp's Adjust the Width of an Element Using the Width Property 2018-08-31 freeCodeCamp's Create Visual Balance Using The Text-align Property, Applied Visual Design 2018-08-30 freeCodeCamp's Intro to the Applied Visual Design Challenges 2018-08-21 freeCodeCamp Basic CSS, Use Hex and RGB to Mix Colors, CSS Variables, & Style Fallbacks 6 2018-08-14 freeCodeCamp Basic CSS,Clockwise Notation for Padding & Margin, CSS Precedence Specificity 5 2018-08-07 freeCodeCamp Basic CSS, Size Images, Setting Id's, Margins, Paddings, & Borders 4 2018-08-02 freeCodeCamp Basic CSS, Change Element Colors,Class Selector, Font Degradation 3 2018-07-20 freeCodeCamp Basic HTML5 Nest an Anchor - Head and Body of HTML Doc 2 2018-07-18 freeCodeCamp Basic HTML Tutorial Say Hello - Link to Internal Sections w Anchor Elements 1 2018-07-12 Question App in Nodejs, Pug,Redirects and Cookie Practice 2018-07-09 Question App in Nodejs, Pug,cookie-parser, setting cookies 5 2018-06-29 Question App in Nodejs, Pug, Body-Parser Parsing Form Data 4 2018-06-27 Question App in Nodejs, Pug, Express, Include Partials 3 2018-06-26 Question App in Nodejs, Pug, Express, Rendering Response 2 2018-06-25 Question App in Nodejs, Express, Flash Card App with Pug Templating 2018-06-22 Codecademy's Learn Express, Matching Longer Paths, ExpressJS 2018-06-21 Codecademy's Learn Express, Setting Status Codes 2018-06-19 Codecademy's Learn Express, Getting a Single Expression 2018-06-18 Codecademy's Learn Express, Matching Route Paths, Understanding Express JS 2018-06-15 Codecademy's Learn Express, Sending a Response, Nodejs Backend
Tags: cookie-parser
res.cookie
req.cookies
setting cookies
redirects
node redirect
redirects in node