Skip to Content
Node与Express开发(第2版)
book

Node与Express开发(第2版)

by Ethan Brown
June 2021
Intermediate to advanced
290 pages
9h 21m
Chinese
Posts & Telecom Press
Content preview from Node与Express开发(第2版)
6
|
第
1
章
Node
应用还有一个很吸引人的好处:
Node
是平台独立的。它不是第一项或唯一一项平台
独立的服务器技术,然而,平台独立远不只是二进制包的问题。例如,因为有了
Mono
,
你可以在
Linux
服务器上运行
.NET
应用
,但是由于文档的缺失和系统不兼容,这会是一
项痛苦的工作。同样,你可以在
W
indows
服务器上运行
PHP
应用,但是通常来说搭建它
没有在
Linux
服务器上那么容易
。而在各大主流操作系统(
Windows
、
macOS
和
Linux
)
上搭建
Node
都轻而易举
,不同操作系统协作起来也很容易。在各个网站设计小组中,混
合使用
PC
和
Mac
是寻常事
。某些开发平台,如
.NET
,就给前端开发和设计人员带来了
不少的挑战(因为他们常常使用
Mac
)
,严重影响了他们的协作和工作效率。只要几分钟
(甚至几秒钟)就可以在任何操作系统上运行起来一个能正常工作的服务器,这个美梦已
经成真了。
1.6
 
Node
生态系统
自然,
Node
位于这个技术栈的核心位置。正是
Node
,使得
JavaScript
可以运行于服务器
之上,脱离浏览器而存在,从而允许使用用
JavaScript
编
写的框架(如
Express
)。另一个
重要的组件就是数据库,这将在第
13
章深入讨论
。除非是最简单的
Web
应用,否则都需
要一个数据库。有几种数据库在
Node
中比在其他语言中还要好用。
所有主要的关系型数据库(
MySQL
、
MariaDB
、
PostgreSQL
、
Oracle
、
SQL
Server
)都有
Node
的接口
,这不奇怪。这些数据库经过多年发展已经非常强大 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

面向对象的思考过程(原书第5版)

面向对象的思考过程(原书第5版)

马特 魏斯费尔德
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115565099