Node.js Tutorial for Beginners - 20 - Adding More Pages

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

These are like 7 years old and while some of the specific code is sligthly different this is still an amazing tutorial series!! Thank you so much 7 years later lol!!!

george-cann
Автор

Man, your tutorials are awesome. I just stayed up for two days straight just working through all of the videos I could so far. Thank you so much for all of these, you are seriously the best

jflopezfernandez
Автор

Greate work. One of the best video series on Node JS. Thanks a lot.

satishc
Автор

Thank you so much for posting this video, you saved my life (and my app)! I have been looking for explanation the entire day!

nikoletakoleva
Автор

If you are getting 404, one of the problems could be inside about.js file.


It's: router.get('/', function(req, res, next)
Not: router.get('/about', function(req, res, next)

ewertone.desouza
Автор

Is exactly what I was looking for, thank you)

ksushayurchenko
Автор

Cant get my intelij to autocomplete the code in ejs...

Nanoytgaming
Автор

In order to include some file, you need to do:
<%- include('foo.ejs') %>
Hope this was helpful !

runninglama
Автор

I get everything working. However I am quite confused why in about.js (route file)

router.get('/', function(){}) was written instead of router.get('/about', function(){})

why it has to be '/' instead of '/about' in the about-route file ?

nirmalthapa
Автор

Is it really necessary to create new routes for each page? I'm asking this because its possible to create one route for multiple pages.

LinkinGarden
Автор

great tutorial and thank you for sharing. Question - how host multiple sites on the same IP/server with node/express?

Maysamm
Автор

How do you navigate lets say after doing some calculations from a button click. Or let me say how do you navigate from 1 route to another

herov
Автор

hey i am working on webstorm but my navigation not working, and when i hover cursor over file name in header it hints unresolved function..what to do?

mukeshbisht
Автор

I am getting error as about is not defined what should i do

webtpoint
Автор

I am getting 404 error while adding web pages. I can't find the solution for this problem as I am using web storm.
Can any of u guys inform me if u know the solution to this?

armaansoni
Автор

You can also have one layout where you don't need to copy and paste the whole <html> </html>, just download and install the expess-ejs-layouts module. then const expressLayouts =

paolo-
Автор

4:23?? "include" is not a javascript keyword! Everyone are just keep saying "javascript" to all platforms, there are differences, that should be pointed out. As far as I know, there is dom javascript, canvas javascript, node javascript, and maybe even more members of this language.

JOTTABYTE
Автор

I'm a little bit confused which are from NodeJS and which are from Express now...

hangchen
Автор

did everything like you but still getting a 404 error

nasseh
Автор

So basically this is like Razor syntax for MVC. You can mix code and script together nicely.

alexsanderrain
join shbcf.ru