DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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
 
kunaal438 profile image
Modern Web Author

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

This post blew up on DEV in 2020:

js visualized

πŸš€βš™οΈ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! πŸ₯³

Happy coding!