DEV Community

Cover image for 🔥🔥backend for login form. Easy to make fully working form
Modern Web
Modern Web

Posted on

🔥🔥backend for login form. Easy to make fully working form

Hello, glad you are here. I am kunaal and today we will see how to make a fully working login and register form with psql databse and nodejs as a backend.

Video Tutorials

Watch these tutorial to learn to make this login register form. You can see its demo also.

Part - 1:

Part - 2:

I hope you understood everything. If you have any doubt or you find any mistake that I made or you have any suggestion feel free to ask me in comment.

If you are interested in programming and want to know how I a 15yr old teen do coding make these design. You can follow me on my Instagram. I am also planning to post my game development stuff on Instagram.

Source Code, My youtube Channel, Instagram

Top comments (4)

Collapse
 
tqbit profile image
tq-bit

Conveying the idea of storing passwords in a db looks rather good, but I noticed (at least in the source code), you're not hashing the user's password.

For a productive environment, you might want to consider storing a password hash rather than the raw text in a db. There are plenty of libs to do so, one of which is called bcrypt npmjs.com/package/bcrypt

Collapse
 
chrisczopp profile image
chris-czopp

In this case, there is no need for third-part libraries as there is native node module: nodejs.org/api/crypto.html

Collapse
 
themodernweb profile image
Modern Web

Yup! Its necessary to store password in hash form in DB but this tutorial purpose was to teach how to store and retrieve data from DB with Node.js

Collapse
 
matttyyo profile image
matttyyo

Hello, I just want to ask will this work online? Like for example if I would've uploaded this to 000webhost.com (my web-hosting provider) would it still login even on there? If it doesn't please let me know how. Thanks