Login Page with Vikas Singh
Login and sign up pages are an integral part of any website. So in this post will learn how to create a login page with NodeJS, SQL, and Express.
So this post will be a workflow for the login page. It may contain some technical jargon and if you have any queries, you can comment out.
So we will discuss the javascript part here.
// Include the libraries you want to use in NodeJS!
// Connect the MySQL database with nodeJS
// Create the Express app and use the required packages (session and body-parser packages)
//make GET request to request the user data and POST request to send those user credentials to the server and then the script will check if someone exists with these credentials.
//if the credential matches, then the user is loginned and redirected to the home page
//POST request is used to redirect the user to the home page.
//make the app listen at port 3000
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home