Lecture Web technology and online services: Lesson 7.2 - Introduction to Node.js

Lecture "Web Technology and online services: Lesson - Introduction to " provide students with knowledge about: Introduction to ; Installation and Example . Please refer to the detailed content of the lecture! | Introduction to 1 Content Introduction Installation and Example Introduction 3 Basic Nodejs is an open-source and cross-platform JavaScript runtime environment runs the V8 JavaScript engine the core of Google Chrome outside of the browser. This allows to be very performant. 2009 was created by Ryan Dahl the first form of npm is created 2011 Larger companies adopting LinkedIn Uber 2015 The Foundation is born release 4 2017 8 introduces in its testing suite officially making a target for the JS engine 2020 14 15 In simple words is Server-side JavaScript . Node s goal is to provide an easy way to build scalable network programs from Basic Nodejs cont. A app is run in a single process without creating a new thread for every request. provides a set of asynchronous I O primitives in its standard library that prevent JavaScript code from blocking Non-blocking I O Example Traditional I O Non-traditional non-blocking I O 5 When can do Generate dynamic page content Create open read write delete close files on server Collect form data Add delete modify data in database Etc. 6 When to use is good for creating streaming based real-time services web chat applications static file servers etc. If high level concurrency and not worried about CPU-cycles. If you are great at writing JavaScript code because then you can use the same language at both the places server-side and client-side 7 Installation and Example 8 Installation can be installed in different ways. Download from website https en download Installation can be installed in different ways. On MacOS from CLI On Ubuntu Install and NPM on Windows Step 1 Download Installer navigate to https en download . Click the Windows Installer button to download the latest default version. 11 Install and NPM on Windows Step

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.