Implementing User Authentication With Node JS and PostgreSQL

  Рет қаралды 116,145

Conor Bailey

Conor Bailey

4 жыл бұрын

Hi all,
In this video we are going to be building a Node JS application which will connect to Postgres (SQL) database. The database will be used to store user details including their names, email addresses and passwords in order for them to log on to the application.
We will be using the following Node libraries:
Express - To serve our application
bcrypt - To hash user password to make them secure
express-session - To store session details in a session cookie object
express-flash - To display flash messages to the user
passport - To authenticate users
passport-local - To implement a local authentication strategy for our application
I hope you enjoy the video. Please leave me a comment below if you have any questions.
Source code: github.com/conorbailey90/node...
Thanks guys. If you find this tutorial helpful then please consider subscribing to my channel.
Conor

Пікірлер: 242
@FlukeHusky
@FlukeHusky 3 жыл бұрын
This has been super helpful. Thank you so much for making this tutorial!!
@ConorBailey
@ConorBailey 3 жыл бұрын
Thank you Fluke. Glad it helped mate.
@LightningFox2407
@LightningFox2407 3 жыл бұрын
absolute legend - so many concepts explained very well and linked together all at once, thank you!
@ConorBailey
@ConorBailey 3 жыл бұрын
Glad it helped dude! :D
@armer18
@armer18 4 жыл бұрын
49:13 - How to register users in DB with hashed passwords etc. 1:03:44 - How to login
@yarikks1862
@yarikks1862 3 жыл бұрын
thanks
@nmasichichukwuemeka5047
@nmasichichukwuemeka5047 3 жыл бұрын
thank you
@ShifaAfreenSiddiqui
@ShifaAfreenSiddiqui 2 ай бұрын
​@@yarikks1862 Hey, I've been stuck at 51:24, where he creates a pool for querying data to see if the users are already registered. Where when he creates the call back function, all is working fine until i create the if condition wherein 'if the results.rows.lentgh>0) for some reason my application is crashing at run time throwing errors and I can't figure out how. Can you help me? I've been stuck at it all day...
@Samsul2013
@Samsul2013 3 жыл бұрын
Hi Conor, it seems your video is the best without distracting me from other issues unrelated to auth in the lesson
@amitabhxyz
@amitabhxyz 9 ай бұрын
Did the complete tutorial with you! Worked like a charm! Thank you for sharing this! :) Ahh quick edit: Since version 0.6.0 req.logout() function is asynchronous. So towards the end, for logout the code should be modified as follows: ``` app.get("/users/logout", (req,res) => { req.logOut(function(err) { if (err) { return next(err); } req.flash("success_msg", "You have successfully logged out."); res.redirect("/users/login"); }); }); ```
@sarajarjen
@sarajarjen 5 ай бұрын
Thank you so much ! 😀
@seankennelly2984
@seankennelly2984 2 ай бұрын
I also had this issue and resolved it the same way!
@ShifaAfreenSiddiqui
@ShifaAfreenSiddiqui 2 ай бұрын
​ Hey, I've been stuck at 51:24, where he creates a pool for querying data to see if the users are already registered. Where when he creates the call back function, all is working fine until i create the if condition wherein 'if the results.rows.lentgh>0) for some reason my application is crashing at run time throwing errors and I can't figure out how. Can you help me? I've been stuck at it all day...
@gregorvand4790
@gregorvand4790 3 жыл бұрын
Great tutorial - easy to follow along, and like some others have said, seeing the debugging is good and keeps knowledge fresh for the viewer. More of these!
@ConorBailey
@ConorBailey 3 жыл бұрын
Cheers Gregor! Glad it helped mate!
@knowledgemagnetic4518
@knowledgemagnetic4518 3 жыл бұрын
Great tutorial. Everything worked and I learned a lot in the process. Thanks!!!
@Samsul2013
@Samsul2013 3 жыл бұрын
The most brilliant instructor on earth
@raffayahmed9390
@raffayahmed9390 2 жыл бұрын
Perfect Explanation, I'll surely use this whole auth system in my projects !!
@MoonlightReserve
@MoonlightReserve 3 жыл бұрын
I rummaged through all KZfaq in search of a similar video, thank you very much, you helped me do my term paper.
@ConorBailey
@ConorBailey 3 жыл бұрын
Awesome mate! Thanks for watching and good luck with the rest of your course 👍
@taylorgraham2906
@taylorgraham2906 4 жыл бұрын
Amazing video! I ended up needing to use react for my frontend but this was the best explanation ever. Definitely will watch more of yours! :)
@ConorBailey
@ConorBailey 4 жыл бұрын
Thanks for watching and for your comment Taylor. Glad it helps. 👍
@MasterPritex
@MasterPritex 4 жыл бұрын
Hi Taylor, i saw that you used react for the frontend, how have you managed to fetch the login token through the server api?
@taylorgraham2906
@taylorgraham2906 4 жыл бұрын
@@MasterPritex I ended up using a JSON web token instead of passport. It simplified the process quite a bit. Here is another helpful tutorial from Stoic: kzfaq.info/get/bejne/bbuBdbCTncDUpXk.html . I'd still love to see @Conor's take on how to do so :)
@jameswbsstudent7332
@jameswbsstudent7332 4 жыл бұрын
can u share taylor how you did the front end version of this or share your working github link for that and any set up instructions? thanks
@windubitably
@windubitably 3 жыл бұрын
I’m using React and JWTs, too, and I still found this video super helpful.
@riccardovitali3564
@riccardovitali3564 4 жыл бұрын
Great video, thank you very much, I love when you solve the issue, it's debugging!
@olaman
@olaman Жыл бұрын
this was awesome! i was transalting your JS to TS. Challenging but worth it
@nikitagupta8114
@nikitagupta8114 4 жыл бұрын
Thank you so much. The tutorial was so nicely explained and it is very helpful for beginners. Keep it up!
@andreygrigorev8366
@andreygrigorev8366 3 жыл бұрын
That video helped me so so much! Finally i can make auth at my website. You have no clue how i'm grateful to you, subbed.
@ConorBailey
@ConorBailey 3 жыл бұрын
Awesome! Glad it helped Andrey!
@MasterPritex
@MasterPritex 4 жыл бұрын
Wow man, i saw literally every tutorial in the first page of youtube, but yours is on another level. Keep going pal!
@ConorBailey
@ConorBailey 4 жыл бұрын
Thanks mate. Glad it helped!
@MasterPritex
@MasterPritex 4 жыл бұрын
@@ConorBailey I have only one question, how do i connect the react frontend with the express api? I have tried using fetch on the app.post /login, but i don't know how to store the cookie on the client side.
@ConorBailey
@ConorBailey 4 жыл бұрын
Red Hood will look into this and get back to you mate.
@jameswbsstudent7332
@jameswbsstudent7332 4 жыл бұрын
@@ConorBailey @Red Hood hi i really have urgent need for the same, can you help please today or tomororw on front end...plus see comment above..thanks´so much
@blackboxCS
@blackboxCS Жыл бұрын
i never comment but this was a great video even after 2 years. thank you.
@talhazaryab
@talhazaryab 3 жыл бұрын
They say that the Devil works hard. Everyone’s wrong. You work harder. This was the most needed tutorial for me. It helped me alot.
@ConorBailey
@ConorBailey 3 жыл бұрын
Thanks Tahla! So glad it helped you out!
@xXBaad13Xx
@xXBaad13Xx 4 жыл бұрын
Thank you so much. This tutorial is amazing and really useful!
@ConorBailey
@ConorBailey 4 жыл бұрын
Diego Aguirre cheers Diego. Glad it helps! 👍
@maheswaranparameswaran8532
@maheswaranparameswaran8532 3 жыл бұрын
Thanks a lot Conor for this tutorial, really helped me a lot for my Project!!!...Keep up the good work man
@ConorBailey
@ConorBailey 3 жыл бұрын
Thank you very much mate. Glad it helped!
@king998100
@king998100 4 жыл бұрын
appreciate your contribution! regards from M'sia.
@kitestance
@kitestance Жыл бұрын
Thank you for showing the mistakes and errors. Good stuff.
@parfaitmombo7471
@parfaitmombo7471 3 жыл бұрын
Thanks, Conor! I appreciated the way you went step by step and mentioned what you will be doing in each step. It helps a lot to have a logical flow. Cheers! By the way, I also created a Donal Trump account as you did.
@ConorBailey
@ConorBailey 3 жыл бұрын
Haha nice. His was the first name that came to my head 😂
@sanlaynx
@sanlaynx 3 жыл бұрын
thanks for the video, couldn't find such info about authorization
@seankennelly2984
@seankennelly2984 2 ай бұрын
Excellent, really helpful and easy to follow! I'm glad you left some mistakes in the video as they gave a chance for me to check my code and find them myself
@FrankUnderwoood
@FrankUnderwoood 3 жыл бұрын
Thank you for this amazing tutorial man! It was super helpful for me.
@ConorBailey
@ConorBailey 3 жыл бұрын
Glad it helped you Frank! 👍
@piyaasok
@piyaasok 3 жыл бұрын
Great tutorial .Thanks! . This was exactly what i was looking for . Like to add a forgot password option to this.
@lyonserdar
@lyonserdar 3 жыл бұрын
Thanks for the great tutorial!
@pawelraszkiewicz565
@pawelraszkiewicz565 2 жыл бұрын
great tutorial! Really helped me grasp passport
@ebenezersiaw935
@ebenezersiaw935 4 жыл бұрын
Thanks a lot Conor Bailey. God bless you
@ihabelrayah7091
@ihabelrayah7091 11 ай бұрын
God bless him!!!!
@mrexpert1854
@mrexpert1854 2 жыл бұрын
Thanks Sir... This was really helpful looking forward to more gr8 content from you....
@marcocamparone3674
@marcocamparone3674 3 жыл бұрын
Great tutorial! Thanks from Arg!
@not_shank
@not_shank 3 жыл бұрын
Excellent video....I was able to follow and understand the concepts very well... However, there is a security concern that the memory may leak by using express-session. A simple fix is to use cookie-session instead and continue as usual . I'd love to see more of such contents . Thank you :)
@ConorBailey
@ConorBailey 3 жыл бұрын
Hey Shashank! Thanks for watching bud. Appreciate the tip as well! Will look into cookie-session. Nice one!
@fabricioalvarez3895
@fabricioalvarez3895 3 жыл бұрын
Thank you so much, you're amazing!!!
@harshavardhannakkina1843
@harshavardhannakkina1843 3 жыл бұрын
awesome, great video, thank you very much
@Sindoku
@Sindoku 3 жыл бұрын
Thanks, I have finally done my own secure authentication in JS thanks to you!
@ConorBailey
@ConorBailey 3 жыл бұрын
Nice one Brian. Glad it helped mate.
@Sindoku
@Sindoku 3 жыл бұрын
@@ConorBailey You don't know how long I've been trying to do proper server side authentication and authorization. I've done single refresh tokens before, but they are less secure than jwt with a refresh token. Now, that I know how to properly authenticate and authorize people, I can move on to the next phase of my idea for a website that sells services.
@RaefetOuafiqo
@RaefetOuafiqo 3 жыл бұрын
@@Sindoku is he using JWT ?
@samshaker7945
@samshaker7945 3 жыл бұрын
Great tutorial! Thankyou Conor.
@ConorBailey
@ConorBailey 3 жыл бұрын
Glad it helped Sam. Thanks for watching bud 👍
@yosimarzahidaquinososa5893
@yosimarzahidaquinososa5893 3 жыл бұрын
thanks for the video, you have helped me a lot
@alesofton
@alesofton 4 жыл бұрын
good and perfect, thanks from chile
@belmedia7326
@belmedia7326 3 жыл бұрын
Useful tutorial! Thank you!
@ConorBailey
@ConorBailey 3 жыл бұрын
Glad it was helpful!
@brahimhomri113
@brahimhomri113 2 жыл бұрын
Thank You So Much , Great Presentation
@mykhailostepanishchev6472
@mykhailostepanishchev6472 3 жыл бұрын
Amazing, thank you.
@mephesh
@mephesh 4 жыл бұрын
I followed the video coding all the way to the end and yes it just works. Learned everything about passport along the way, and ejs. Thank you Conor. Next step is to write some react pages that consume it as a api. I noticed the project does some specials with ejs/routing/redirecting so it will be interesting. Might have to remove the specials to have it work with react not sure, all up great vid. I do like that the project has ejs pages that can test everything, bit like a swagger. api time!
@shalinichahar6389
@shalinichahar6389 5 ай бұрын
hi please can you tell how did you connect react?
@alexpeirson4278
@alexpeirson4278 3 жыл бұрын
Super clear and helpful tutorial, thank you :)
@ConorBailey
@ConorBailey 3 жыл бұрын
Nice one Alex
@katanwillis
@katanwillis 3 жыл бұрын
Thank you . This is an Amazing Video. Your video is more clearly to understand bfor a beginner.
@ConorBailey
@ConorBailey 3 жыл бұрын
Thank you! Glad it helped!
@katanwillis
@katanwillis 3 жыл бұрын
Could you consider making other version using typescript and html ?
@didahandian6029
@didahandian6029 2 жыл бұрын
thank you for the tutorial its helpful for me
@daviesadedeji5344
@daviesadedeji5344 3 жыл бұрын
you are a Very good teach id recommend you any time. Great job. Also kindly take use more on ejs(cos im new to it), angular, and nestjs
@RobrotoPlays
@RobrotoPlays 2 жыл бұрын
my savior + it''s on mac. :) TYSM
@sarajarjen
@sarajarjen 5 ай бұрын
Great video, thank you ! :))
@thalleskaic
@thalleskaic 8 ай бұрын
thank you it really helped!!
@raviprakashsingh9782
@raviprakashsingh9782 4 жыл бұрын
Amazing video and content, you really helped me out. Thanks
@ConorBailey
@ConorBailey 4 жыл бұрын
Ravi Prakash Singh n😊Nice one Ravi. Glad it helped mate! 👍
@frederikdiamond
@frederikdiamond Жыл бұрын
Great video. I learned a lot 👍
@roghanbehm4639
@roghanbehm4639 Жыл бұрын
exactly what i needed, cheers
@itzblinkzy1728
@itzblinkzy1728 3 жыл бұрын
Great explanation, thank you :)
@ConorBailey
@ConorBailey 3 жыл бұрын
Itz Blinkzy thanks Itz! Glad it helped
@marcincylkowski3004
@marcincylkowski3004 4 жыл бұрын
Thanks for your video! It is amazing
@ConorBailey
@ConorBailey 4 жыл бұрын
Nice one Marcin 👍
@otepiii
@otepiii 3 жыл бұрын
awesome video! thanks a lot!
@justindb83
@justindb83 4 жыл бұрын
Great video, very helpful!, would be cooler if this was split out to separate VS Projects, i.e. front end code, and back end code. EJS though... yuck. I guess this reminded me on why I use lit-html templates instead now :)
@jamieplunkett9669
@jamieplunkett9669 3 жыл бұрын
Thank you so much!! this is amazing stuff
@ConorBailey
@ConorBailey 3 жыл бұрын
Thanks Jamie. Glad it helped dude!
@tamilpick7950
@tamilpick7950 Жыл бұрын
Thanks a lot ! It is really helpful 😇
@benjaminfisher3869
@benjaminfisher3869 Жыл бұрын
hi have you got this working? could you link your github repo, im stuck
@Maik-wi2vy
@Maik-wi2vy 3 жыл бұрын
All in all a good video. But you could have mentioned that the default server-side session storage is purposely not designed for a production environment and that you should use a session store.
@tayyabmughal10000
@tayyabmughal10000 Жыл бұрын
Thanks for the github link...😘😘
@stevensong6909
@stevensong6909 4 жыл бұрын
I LIKE IT !
@phrankadams7181
@phrankadams7181 7 ай бұрын
We didnt see the connection made between the app and the database,just the codes...but i really loved this video
@williamtrapp2857
@williamtrapp2857 3 жыл бұрын
Awesome video and link to the source code. I was able to work through getting my app up.
@ConorBailey
@ConorBailey 3 жыл бұрын
William Trapp nice one William!
@rodgamwo
@rodgamwo 3 ай бұрын
amazing. thanks a lot
@hemparekh8839
@hemparekh8839 3 жыл бұрын
Amazing Video!!
@vincenzoivanpanacciulli6377
@vincenzoivanpanacciulli6377 Жыл бұрын
thank you so much!
@hotaru6765
@hotaru6765 2 жыл бұрын
Thank you Sir
@parminderkaur4136
@parminderkaur4136 3 жыл бұрын
this is the best video I ever saw. thank you very very much. Also can you upload video tutorials on how to make smart contracts in blockchain.
@ConorBailey
@ConorBailey 3 жыл бұрын
Hey thanks Parminder! Really glad you found this helpful. I don’t know much about blockchain to be honest. The best place to start would be this video an evolve from there: kzfaq.info/get/bejne/sLyhlt13v9iVYmg.html All the best. Conor
@abhishekabramaina6167
@abhishekabramaina6167 7 ай бұрын
you can use word wrap toggled on to handle such long strings getting out of the window
@luisalbertovillarortiz7424
@luisalbertovillarortiz7424 2 жыл бұрын
Thanks for sharing and teaching us It was a handy and neat way to blend/mix and use these useful skills! On the other hand I want to ask you how to continue typing after (END) IN MINUTE 4:49 .... thanks!! you have my like!!!
@pranav_arya
@pranav_arya 2 жыл бұрын
just press enter
@samkiernan8878
@samkiernan8878 2 жыл бұрын
Mate this shit is so good, you ever come to Norwich I will treat you so right ;)
@samkiernan8878
@samkiernan8878 2 жыл бұрын
litterally clapping right now mate, bravo!!!!
@Teach_Udemy
@Teach_Udemy 6 ай бұрын
Amazing vide
@Hakeem-rk4ns
@Hakeem-rk4ns 4 жыл бұрын
Good job
@luissalas4888
@luissalas4888 3 жыл бұрын
Thanks, you rock!
@farawayofme2918
@farawayofme2918 6 ай бұрын
Great tutorial - thanks for simblicity.... if you dont mind how to make search engine with node.js and postgres
@francot7717
@francot7717 3 жыл бұрын
Genius! liked, sucribed!
@ConorBailey
@ConorBailey 3 жыл бұрын
Thanks mate! Glad it helped.
@hernanbritos1977
@hernanbritos1977 3 жыл бұрын
Nice video men!!! Loves from arg
@ConorBailey
@ConorBailey 3 жыл бұрын
Thanks mate!
@silviacabrera1721
@silviacabrera1721 3 жыл бұрын
Thank you! As recomendation when you get the error of pending in the process (just like happend to me) it appears to be a problem with pg. You can use npm uninstall pg --save and then install it again with npm install pg --save. That solves the problem
@jbarben3
@jbarben3 2 жыл бұрын
This worked for me, thank you!
@manuelbarinas5960
@manuelbarinas5960 4 жыл бұрын
great job! this is the most complete video i have seen on youtube. Is there a possibility to explain something similar using vue?
@samiayahia2879
@samiayahia2879 4 жыл бұрын
hey,i need a help ,can you help me please ?
@orlandoemilianogarciadiaz2531
@orlandoemilianogarciadiaz2531 2 жыл бұрын
Great video, buddy. But researching a few, I have just figured out that express-session will be deprecated soon for security troubles. In that case I recommend to use JWT, which encrypts the information during the session.
@vishalsrivastava4981
@vishalsrivastava4981 3 жыл бұрын
Amazing
@rowlandwilliams9827
@rowlandwilliams9827 3 жыл бұрын
Hey Conor, This tutorial is really helpful, thank you. Cleared up a lot of things I was unclear about. I know lots of people have asked, but you mentioned in an earlier comment that you were working on a similar tutorial incorporating a react front-end. I was just wondering if you ever uploaded this? Now that I have a backend with authentication set-up I'm going to try connect it with react but would be great to see how you would approach it. Cheers, Rowland
@ConorBailey
@ConorBailey 3 жыл бұрын
Hi Rowland. Glad the tutorial helped. I do remember mentioning that but I just never got round to doing it. I haven't used React for a while now tbh but I will try to look into making a tutorial for this. Im sure there are packages available for handling flash messages and sessions with Passport in React.
@codingdaily4094
@codingdaily4094 3 жыл бұрын
How to send a message on error to the Front-End if we have a backend made with Vue ? Please help me I'm stuck
@mohakgaur4603
@mohakgaur4603 7 ай бұрын
How do you add a semicolon at the end of the line while your cursor is not at the end, like is there any keyboard shortcuts or something...?
@josemanuelsamanomijangos4936
@josemanuelsamanomijangos4936 2 жыл бұрын
Hi... I've been trying to implement your code by following each file you make step by step; unfortunately I'm stuck in the part where the req.body returns empty or undefined... any suggestions on how to fix it
@jameswbsstudent7332
@jameswbsstudent7332 4 жыл бұрын
conor thanks for this great tutorial, it really is super good....can you also let us know how to take this and what would be need to transform this into REACT front end? i assume we are building this user registration here for admin users to the server app or would we use this for a client facing application as well or can we take the code and move stuff over to client side? ( have to do a login to my app for all users
@mufty_codes
@mufty_codes 4 жыл бұрын
This is a great video. Thanks man. I just recommended this video for a friend I am stucked somewhere: around the 50th minute of the tutorial, where you did the validation check for "If the user already exists". I don't know what's wrong, I just keep getting error at that point. Here is what it says: C:\Users\DELL\Desktop\Workspace\auth\server.js:57 throw err ^ Error: connect ECONNREFUSED 127.0.0.1:5432 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
@ConorBailey
@ConorBailey 4 жыл бұрын
Lateef Olayinka Quadri hi mate. Thank you for watching and for sharing. Much appreciated. It’s hard for me to say where that error is coming from without seeing the full code. Maybe this article will help: stackoverflow.com/questions/14168433/node-js-error-connect-econnrefused Let me know how you get on. Thanks again.
@mufty_codes
@mufty_codes 4 жыл бұрын
@@ConorBailey Thank you! I have solved it using try() and catch().
@mufty_codes
@mufty_codes 4 жыл бұрын
Another question that I have is that: is bcrypt enough to rely on for password hashing? Can one still use stuff like JWT?
@Karafakioglu
@Karafakioglu Жыл бұрын
For anyone having an issue with req.logout(); It requires callback function so it is app.get("/users/logout", (req, res) => { req.logout(() => { req.flash('success_msg', 'You are logged out'); res.redirect("/users/login"); }); });
@eldericomendoza1145
@eldericomendoza1145 2 жыл бұрын
Thanks, How can I call a PGpsql scrpt file (*sql) inside the node js without typing the while script? or pass the sql file inside the node js?
@avdao9338
@avdao9338 3 жыл бұрын
Hello the video is very instructive, can you explain to me how I can add another route next to the dashboard when I log in to put me on that route
@seans2366
@seans2366 2 жыл бұрын
Great video, but the express logout function has been updated and now requires a callback function. I included the redirect to login inside the 'req.logout(redirect in here)' and now it works. But overall, great video, super simpe to understand and easy to follow along.
@ashishpurohit4352
@ashishpurohit4352 Жыл бұрын
How did you solve it can you explain me ???
@Karafakioglu
@Karafakioglu Жыл бұрын
@@ashishpurohit4352 app.get("/users/logout", (req, res) => { req.logout(() => { req.flash('success_msg', 'You are logged out'); res.redirect("/users/login"); }); });
@jameswbsstudent7332
@jameswbsstudent7332 4 жыл бұрын
@ConorBailey Thank you for a great tutorial. With a little more explanation on the lines of code the THEORY instead of those parts where you just coded in stuff, it would be perfect ..perhaps u could edit and add a recap to go through the final code walkthrough with theory? and also since many of us are using React Front End, how we can integrate this to the Front End? It is a little confusing the purpose on the back end only with Express and Postgres, instead of a React Express Postgres altogether. How would we change our code, how much can we keep, can all this be used as part of our front end user app? I have to figure that out by tomorrow, LOL. if you can help give some details on how to do this. Thanks. Also, 1) In general, when we download your finished app from github, and run npm install, then npm start, it still does not work, even when i change the .env file to my postgres setup.i..how do we get your app to work)
@yuvrajumale367
@yuvrajumale367 3 жыл бұрын
great thank you
@Jaimie-C
@Jaimie-C 3 ай бұрын
Do you have a video on how to connect something like this to front end projects in HTML, CSS, JS? Thanks for the great vid!
@HUBTESLA
@HUBTESLA 3 жыл бұрын
Hello please help me. I have to use VUEJS, how do I do the server? I saw that you use ejs, but not me
@alexwhitmore4902
@alexwhitmore4902 3 жыл бұрын
PLEASE HELP: at 4:04, what is the command you press to get out of the (END)?
@simaobonvalot7697
@simaobonvalot7697 Жыл бұрын
Is the passport library equivalent to the JWT ? I mean , do they have the same functionality ? Cheers mate , thanks for the video🙏
@VideozForFun
@VideozForFun 3 жыл бұрын
Hey Conor would you know why the querying is not working for me? I followed your tutorial exactly but when I click the register or login button, nothing happens...it just loads and the pool.query doesn't return or print anything in the console as well. I tested querying my database on a separate project and it works, but it's just not querying anything here.
@VideozForFun
@VideozForFun 3 жыл бұрын
It's okay I found the solution. I'll leave it here for anyone else who might be facing the same issue. It turns out that my pg module was version 7.x.x. I had to update the pg module to the latest version module which was version 8.5.1. Ran this line in the terminal and that fixed the problem. npm i pg@latest
@clementedonosok5434
@clementedonosok5434 3 жыл бұрын
Hi! How can I use reac for backend with this code? Can you explain me?
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 28 МЛН
JWT Authentication Tutorial - Node.js
27:36
Web Dev Simplified
Рет қаралды 1 МЛН
Build restful API with PostgreSQL and Express
39:26
Quacklearner
Рет қаралды 98 М.
JWT Authentication with Node Crash Course
1:29:11
Laith Academy
Рет қаралды 50 М.
CRUD API Tutorial - Node, Express, MongoDB
1:33:14
freeCodeCamp.org
Рет қаралды 183 М.
PERN authentication full course (backend)
1:08:11
Mike dev
Рет қаралды 24 М.
Let's build GPT: from scratch, in code, spelled out.
1:56:20
Andrej Karpathy
Рет қаралды 4,4 МЛН
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,1 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН
Как слушать музыку с помощью чека?
0:36