We have introduced the basic knowledge of connect middleware in a few articles. Today, let's take an example of the application and make a small application in Notepad. I hope you will like it.
I. Opening Analysis
Hello, everyone, here comes Xiong Jun again. Yesterday I did not write a blog because of my personal affairs. Today I came out with another article. This article mainly writes a small application of notepad and the previous article,
I have also introduced the use of the "Connect" middleware and the usage of the "Mongodb" middleware. Today I will combine these two middleware to write a practical example, which is constantly improved and reconstructed.
The purpose of Full learning. Okay, let's talk about it. Go to the topic directly.
Ii. Demand Analysis
(1) user registration and login functions (there is no complicated interaction scenario involved, and a user will judge whether the user exists during registration ).
(2) the user logs on successfully and enters the background of the Note Management System (addition, deletion, modification, and query functions of the Note module ).
(3) users can have simple permissions (Administrator, registered users ).
(4) the interface is relatively simple and focuses on learning.
3. Start designing applications (Part 1)
(1) create a user logon page. The Code is as follows:
The Code is as follows:
Bigbear notepad application Logon