Get ready
- Complete the GitHub warehouse
- Clone GitHub Warehouse to Local
- Create a local warehouse Express app
Client Side
- Add Static Home: Login page
- Bind the login page data and Vue
- The method of binding the button via Vue: Implementing AJAX submissions.
Server Side
- By app.js processing the request of Ajax, the user and password are removed and displayed through the console.
- Create a JSON array on the server side, implement a user name and password comparison, play the validation results to AJAX Ajax side, * username password match, jump to the main page. * User name exists, password error, prompt * User does not exist, prompt
- To store user information via MySQL database instead
- Set the response header, which is the client's ability to differentiate how it is handled based on header information.
- Use node's crypto module for password encryption
- Use cookies to maintain user login (after successful login, you can only access it within a specified time, you do not need to log in again)
WebApp Development process