NodeJS Study Notes: Connect middleware application instance _ node. js-js tutorial

Source: Internet
Author: User
Tags findone
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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.