Node.js for JavaScript Developers培训

课程编码

nodejsdev

课程时长

21 小时 通常来说是3天,包括中间休息。

要求

Students taking this course should have JavaScript programming experience.

课程概览

概观

Node.js是一个轻松构建快速,可扩展的网络应用程序的平台。了解如何使用事件驱动的非阻塞I / O模型构建跨分布式设备运行的数据密集型实时应用程序。我们将探索使Node.js独特的设计选择,如何改变应用程序的构建方式以及应用程序系统如何在此模型中最有效地工作。了解如何创建强大,富有表现力和清晰的模块化代码。了解何时使用回调,事件发射器和流。使用流可以轻松处理无法在应用程序内存中使用的数据。有效处理错误以确保运行时可靠性。该课程有大量的实验练习,以加强所涵盖的概念和技术。

目标

完成本课程后,学生将能够:

  • 清楚地理解导致Node.js选择事件循环的平台设计选择,以及这对于在此基础上构建的应用程序意味着什么。
  • 了解事件驱动编程中存在的独特权衡。
  • 在应用程序中创建Node.js模块并表达代码模块性。
  • 了解Node.js的核心流控制模式,并了解何时适合使用回调,事件发射器或流。
  • 有效地创建和操作缓冲区。
  • 了解如何管理错误状态并了解进程何时因错误而退出。
  • 使用Node.js构建网络应用程序。

Machine Translated

课程大纲

Intro to Node.js

  • RAM vs. I/O latency
  • Blocking vs. Non-Blocking
  • Event-driven Programming
  • Event Loop
  • Blocking The Event Loop
  • Node.js Philosophy

Node.js Platform Setup

  • Download and Install
  • Node REPL
  • First Hello World

Modules and npm

  • Anatomy of a module
  • Private code
  • Accessing and using modules
  • npm commands
  • package.json

The Callback Pattern

  • What are callbacks
  • Callback-last
  • Error-first

Events

  • When to use Event Emitters
  • Binding Functions to Events
  • Event Requests
  • Event Listening

Error Handling

  • Callbacks: Error-first
  • Errors in Event Emitters
  • Uncaught Exceptions
  • Using Domains

Buffers

  • Why Buffers exist
  • Creating Buffers
  • Reading and Writing Buffers
  • Manipulating Buffers

Streams

  • What are streams
  • Read and Write Stream API
  • Flow Control
  • Piping
  • Duplex Stream
  • Transform Stream

Express.js

  • Intro and Installing Express.js
  • Building a Hello Express application
  • Creating routes
  • Rendering Layouts
  • Using templates
  • Adding partials
  • Using locals and conditional templates
  • Modularizing routes

Socket.io

  • Listening for
  • Broadcasting
  • Answering questions

Connecting to Databases

  • No SQL and Document Stores
  • Relational DBs
  • Configuration and platform setup
  • CRUD Operations

客户评论

★★★★★
★★★★★

课程分类

相关课程

促销课程

订阅促销课程

为尊重您的隐私,我公司不会把您的邮箱地址提供给任何人。您可以享有优先权和随时取消订阅的权利。

我们的客户

is growing fast!

We are looking to expand our presence in China!

As a Business Development Manager you will:

  • expand business in China
  • recruit local talent (sales, agents, trainers, consultants)
  • recruit local trainers and consultants

We offer:

  • Artificial Intelligence and Big Data systems to support your local operation
  • high-tech automation
  • continuously upgraded course catalogue and content
  • good fun in international team

If you are interested in running a high-tech, high-quality training and consulting business.

Apply now!

This site in other countries/regions