Node Application Scenario

Source: Internet
Author: User
Tags oauth node server

2.1 Web Development: Express + EJS + mongoose/mysql

Express is a lightweight and flexible Nodejs Web application framework that allows you to build websites quickly. The Express framework is built on the Nodejs built-in HTTP module, and re-wraps the HTTP module to the actual Web request processing functionality.

Ejs is an embedded JavaScript template engine that generates HTML code by compiling.

Mongoose is a MongoDB object Model tool that allows access to MONGODB operations through the Mongoose framework.

MySQL is the communication API that connects to MySQL database and can be used to access MySQL operations.

Web development is usually done with Nodejs, which requires 3 frameworks to work with, like SSH in Java.

2.2 Rest Development: restify

Restify is a Nodejs-based rest application framework that supports both server-side and clients. Restify is more focused on rest services than Express, removing the template and render features in Express, while reinforcing the rest protocol usage, versioning support, and HTTP exception handling.

2.3 Web chat Room (IM): Express + Socket.io

Socket.io One is a software package based on NODEJS architecture that supports websocket protocols for communication at all times. Socket.io provides a complete package for cross-browser building of real-time applications, and Socket.io is fully implemented by JavaScript.

2.4 Web crawler: Cheerio/request

Cheerio is a fast, flexible, and packaged jquery core functionality toolkit specifically tailored for servers. Cheerio includes a subset of the jquery core, which removes all DOM inconsistencies and incompatible browser parts from the jquery library, revealing its truly elegant API. Cheerio work on a very simple, consistent DOM model, parsing, manipulating, rendering is incredibly efficient. The base end-to-end benchmark shows that the cheerio is approximately eight times times faster than the Jsdom (8x). The Cheerio encapsulates @fb55-compatible htmlparser and is capable of parsing virtually any HTML and XML document.

2.5 Web Blog: Hexo

Hexo is a simple, lightweight, node-based static blogging framework. With Hexo we can quickly create our own blogs, which can be done with just a few commands.

At the time of release, Hexo can be deployed on its own node server, or it can be deployed on GitHub. For individual users, the deployment on GitHub is a lot of good, not only to eliminate the cost of the server, but also reduce the various system operations of the trouble (System management, Backup, network). So, the GitHub-based personal site is starting to pop up ....

2.6 Web forum: Nodeclub

Node Club is a new community software developed with node. JS and MongoDB, which is elegant, feature-rich and small and fast, and has been applied in the node. JS Chinese technology Community CNode, but you can use it to build your own community.

2.7 Web Slide Show: Cleaver

Cleaver can generate markdown-based presentations. If you already have a markdown document, you can make it into a slideshow in 30 seconds. Cleaver is the tool prepared for hacker.

2.8 Front-end package management platform: bower.js

Bower is a package management tool launched by Twitter, based on Nodejs's modular thinking, to spread functionality across modules, to connect modules and modules, and to manage this connection between modules through Bower.

2.9 OAuth Authentication: Passport

The Passport project is a Nodejs-based, certified middleware. Passport is intended only for "login Authentication", so the code is clean and easy to maintain and can be easily integrated into other applications. Web applications generally have 2 types of login authentication form: User name and password Authentication login, OAuth authentication login. Passport can configure different authentication mechanisms according to the characteristics of the application. This article will introduce, user name and password Authentication login.

2.10 Timer Task Tool: Later

Later is a Nodejs-based tool library that performs timed tasks in the simplest way. Later can be run in node and in the browser.

2.11 Browser Environment Tool: Browserify

The advent of browserify allows the Nodejs module to run in the browser, using the syntax format of the require () to organize the front-end code and load NPM modules. In the browser, call the Browserify compiled code, also written in the <script> tag.

The operation of Browserify is divided into 3 steps. 1. Write node program or module, 2. Pre-compiled with browserify into Bundle.js, 3. Load the bundle.js in the HTML page.

2.12 Command-line programming tool: Commander

The commander is a lightweight Nodejs module that provides user command line input and parameter parsing power. Commander originates from a Ruby project with the same name. Commander Features: Self-documenting code, auto-Generate help, combine short parameters ("ABC" = = "-a-b-c"), default options, mandatory options??, command resolution, prompt.

2.13 Web Console tool: Tty.js

Tty.js is a command-line window that supports running in a browser, based on the node. JS platform and relies on the Socket.io library to communicate with the Linux system through WebSocket. Features: Support Multi-tab window model; Support VIM,MC,IRSSI,VIFM syntax; Support Xterm mouse events; Support 265 color display; Support session.

2.14 Client Utility: Node-webwit

Node-webkit is a fusion of Nodejs and Webkit technologies, providing an underlying framework for client application development across Windows and Linux platforms, leveraging popular web technologies (NODE.JS,JAVASCRIPT,HTML5) to write the application's platform. Application developers can easily use web technologies to implement a variety of applications. Node-webkit performance and features have made it the world's leading web technology application platform.

2.15 Operating System: Node-os

Nodeos is a friendly operating system developed with Nodejs, which is built entirely on top of the Linux kernel, and uses shell and NPM for package management, using Nodejs not only to manage packages well, but also to manage scripts, interfaces, and so on. Currently, both Docker and vagrant are built with the first version of Nodeos.

Node Application Scenario

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.