دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش:
نویسندگان: Ramesh Kumar
سری:
ISBN (شابک) : 9788196815158
ناشر: Orange Education Pvt Ltd, AVA™
سال نشر: 2024
تعداد صفحات: 409
زبان: English
فرمت فایل : EPUB (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 9 Mb
در صورت تبدیل فایل کتاب Ultimate Node.js for Cross-Platform App Development: Learn to Build Robust, Scalable, and Performant Server-Side JavaScript Applications with Node.js به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب Node.js نهایی برای توسعه برنامه های بین پلتفرمی: یاد بگیرید که با Node.js برنامه های جاوا اسکریپت سمت سرور قوی، مقیاس پذیر و کارآمد بسازید نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
قدرت Node.js را برای ساختن برنامههای کاربردی در سمت سرور مقیاسپذیر و درجه سازمانی آزاد کنید ویژگیهای کلیدی ● با تمرکز بر Node.js، Express.js، Mongoose، Socket.IO، و ورود به سیستم Winston، به ملزومات ساخت برنامههای بلادرنگ مسلط شوید. و میان افزار کلیدی. ● ایجاد سرورهای باطن سبک و مقیاسپذیر را بیاموزید و از عملکرد بهینه برای برنامههای آماده تولید اطمینان حاصل کنید. ● با به دست آوردن مهارت در Node.js جلوتر از منحنی بمانید و خود را برای موفقیت در یک چشم انداز فناوری به سرعت در حال تحول قرار دهید. ● مسیر سریع به سمت تخصص Node.js، ارائه مثالها و بینشهای عملی برای آمادهسازی شما برای خواستههای فعلی و آینده چشمانداز فناوری. شرح پتانسیل کامل Node.js برای توسعه وب مدرن را با این کتابچه راهنمای جامع برای توسعه برنامهها و خدمات باز کنید. این کتاب اصول تکنیک های پیشرفته را پوشش می دهد، پیچیدگی های ساخت برنامه های کاربردی قدرتمند را بررسی می کند. شما بر ایجاد سرور اکسپرس مسلط خواهید شد، APIهای RESTful را با مسیریابی کارآمد توسعه میدهید، و برای پایداری یکپارچه داده، به MongoDB میروید. این تفاوتهای ظریف موتورهای قالب، میانافزار و روشهای احراز هویت قوی را آشکار میکند. از Socket.IO برای قابلیت های بلادرنگ استفاده کنید و با ثبت موثر خطاها را به خوبی مدیریت کنید. این پروژه ها به عنوان دیگ های بخار همه کاره برای شروع تلاش های توسعه خود شما دو برابر خواهند شد. در فصل بعد، توسعه تست محور با موکا را یاد خواهید گرفت، بینش هایی در مورد اشکال زدایی به دست خواهید آورد، و هنر ساخت و استقرار برنامه های Node.js را کامل خواهید کرد. هر نمونه در کتاب به بهترین شیوههای رایج پایبند است و بینشهای ارزشمندی را ارائه میکند تا به شما کمک کند از دامهای رایج اجتناب کنید. این کتاب که هم به عنوان یک منبع یادگیری و هم به عنوان راهنمای مرجع طراحی شده است، شما را با دانش مقابله با مشکلات چالش برانگیز در هر مرحله از توسعه مجهز می کند. چه چیزی یاد خواهید گرفت ● یک سرور Express قوی ایجاد کنید تا فرآیند توسعه خود را ساده کنید. ● در ایجاد API های RESTful با تکنیک های مسیریابی کارآمد عمیقاً کاوش کنید. ● در استفاده از موتورهای قالب برای ارتقای پیچیدگی پروژه خود مسلط شوید. ● برنامه های خود را با استفاده از میان افزار برای قابلیت های توسعه یافته تقویت کنید. ● از قدرت Socket.IO برای افزودن پویایی و تعامل به پروژه های خود استفاده کنید. ● توسعه تست محور (TDD) را با استفاده از موکا برای اطمینان از قابلیت اطمینان کد پیاده سازی کنید. ● پیچیدگی های ساخت و استقرار برنامه های Node.js را به طور موثر درک کنید. ● چشم انداز در حال تکامل Node.js را کاوش کنید و در خط مقدم روندهای توسعه وب در حال ظهور باقی بمانید. این کتاب مال کیه؟ این کتاب برای مبتدیان ایدهآل است، Node.js را ابهام میکند و به معماری و مفاهیم اصلی آن کمک میکند. مملو از مثال های عملی، شما را به دانش ضروری مجهز می کند. در پایان، شما با اطمینان یک برنامه زنده در پشته Node.js خواهید ساخت. آشنایی اولیه با جاوا اسکریپت و برنامه های کاربردی وب قبل از غواصی توصیه می شود. فهرست مطالب 1. شروع به کار با Node.js 2. Deep Dive به Node.js 3. معرفی Express.js 4. ایجاد REST API و مسیریابی 5. کار با MongoDB 6. پایداری داده 7. موتورهای قالب 8. توابع میان افزار 9. احراز هویت و مجوز 10. Socket.IO 11. خطاهای مدیریت و ثبت 12. TDD با Mocha و Chai 13. اشکال زدایی 14. ساخت و استقرارها 15. Future Scope
Unleash the Power of Node.js for Building Enterprise-Grade, Scalable Server-Side Applications KEY FEATURES ● Master the essentials of building real-time applications with a focus on Node.js, Express.js, Mongoose, Socket.IO, Winston logging, and key middleware. ● Learn to create lightweight and scalable backend servers, ensuring optimal performance for production-ready applications. ● Stay ahead of the curve by gaining proficiency in Node.js, positioning yourself for success in a rapidly evolving technological landscape. ● Quick path to Node.js expertise, providing practical examples and insights to prepare you for the current and future demands of the tech landscape. DESCRIPTION Unlock the full potential of Node.js for modern web development with this comprehensive handbook to developing applications and services. The book will cover the fundamentals to advanced techniques, explore the intricacies of building powerful applications. You will master Express server creation, develop RESTful APIs with efficient routing, and dive into MongoDB for seamless data persistence. It will uncover the nuances of template engines, middleware, and robust authentication methods. Leverage Socket.IO for real-time capabilities and adeptly handle errors with effective logging. The projects will double as versatile boilerplates for kickstarting your own development endeavours. In the later chapter you will learn Test-Driven Development with Mocha, gain insights into debugging, and perfect the art of building and deploying Node.js applications. Each example in the book adheres to common best practices, providing valuable insights to help you avoid common pitfalls. Designed as both a learning resource and a reference guide, this book equips you with the knowledge to tackle challenging problems at any stage of development. WHAT WILL YOU LEARN ● Develop a robust Express server to streamline your development process. ● Delve deep into creating RESTful APIs with efficient routing techniques. ● Master the utilization of template engines to elevate your project sophistication. ● Enhance your applications by incorporating middleware for extended capabilities. ● Harness the power of Socket.IO to add dynamism and interactivity to your projects. ● Implement Test-Driven Development (TDD) using Mocha to ensure code reliability. ● Grasp the intricacies of constructing and deploying Node.js applications effectively. ● Explore the evolving landscape of Node.js, staying at the forefront of emerging web development trends. WHO IS THIS BOOK FOR? Perfect for beginners, this book demystifies Node.js, offering a deep dive into its architecture and core concepts. Loaded with practical examples, it equips you with essential knowledge. By the end, you\'ll confidently build a live application on the Node.js stack. Basic familiarity with JavaScript and web applications is recommended before diving in. TABLE OF CONTENTS 1. Getting Started with Node.js 2. Deep Dive into Node.js 3. Introducing Express.js 4. Creating REST API and Routing 5. Working with MongoDB 6. Data Persistence 7. Template Engines 8. Middleware Functions 9. Authentication and Authorization 10. Socket.IO 11. Handling and Logging Errors 12. TDD with Mocha and Chai 13. Debugging 14. Build and Deployments 15. Future Scope Index
Cover Page
Title Page
Copyright Page
Dedication Page
About the Author
About the Technical Reviewers
Acknowledgements
Preface
Errata
Table of Contents
1. Getting Started with Node.js
Introduction
Structure
History of Node.js
Defining Node.js
Features of Node.js
Reasons for Node.js Popularity
Node.js versus Browser JavaScript
Installing Node.js
Installing NVM on Windows
Verifying NVM Installation
Some Core Concepts of Node.js
V8 Engine
Blocking versus Non-blocking Operations
Event Loop
Callback functions
Defining Callback Hell in Node.js
Ways to Avoid Callback hell
Promise
Async and Await
Choosing the Appropriate Approach
REPL Console
Getting Started with the REPL
Using NPM and Package.json
Init
Install
Installing Single Package
Update
Attributes of Package.json
The First Console Application Using Node.js
The First Web Application Using Node.js
Conclusion
Further Readings
Test Your Node.js Basic Knowledge
Answers
2. Deep Dive into Node.js
Introduction
Structure
Traditional Web Application Architecture
Architecture of Node.js
Event Loop
Phase Methods in Details
Non-blocking or Asynchronous I/O
Bank and Cafe
Core Node Modules
Buffers
Creating Buffers
Writing Buffers
Reading from Buffers
Converting Buffer to JSON
Concatenating Buffers
Comparing Buffers
Copying Buffer
Events
Emit an event with arguments
Detach an event listener
Extend the EventEmitter class
File System
File Reading
File Open
File Information
HTTP
Path
Process
Stream
Reading from Stream
Writing to Stream
Piping Stream
Chaining Stream
Conclusion
Questions
Answers
3. Introducing Express.js
Introduction
Structure
Express.js Overview
Key Features of Express.js
Benefits of Express.js
Installing Express.js
How Express.js Works
Adding Routes in Express
Request/Response Object
Using Middleware in Express
Application-level middleware
Router-level middleware
Error-handling middleware
Built-in middleware
Third-party middleware
Serving Static Files
Express Application Generator
Conclusion
Questions
Answers
4. Creating REST API and Routing
Introduction
Structure
Introduction to RESTful Services
Benefits of RESTful APIs
Different Kinds of HTTP Verbs
Idempotency of Different HTTP Verbs
How RESTful APIs Work
Creating the First HTTP Server
Adding Routes
Using Swagger with Node.js
Setting up Swagger in Node.js
Request Validations
Validating Request Body
Request Transformation
Response Transformation
Understanding HTTP Status Codes
CORS Request Handling with Express
Configuring CORS with Express
API Error Handling
Conclusion
Further Readings
5. Working with MongoDB
Introduction
Structure
Introducing Database
Use Case of Database
Types of Database
Advantages of Using Databases
Disadvantages of Using Databases
Database Management System (DBMS)
Usage of DBMS
Types of Data Models in DBMS
Advantages of DBMS
Disadvantages of DBMS
ACID Properties in DBMS
Basics of MongoDB
RDBMS versus MongoDB
Key Components of MongoDB Architecture
How MongoDB Works
Features of MongoDB
Advantages of MongoDB
Disadvantages of MongoDB
Installing MongoDB on Windows
Creating our First Connection to MongoDB
Mongo Shell for MongoDB
Installing the Mongo Shell
Connecting to MongoDB Database
Running Mongo Shell Application
Basic Commands for Mongo Shell
Introduction to MongoDB Compass
Installation of Compass on Windows
Conclusion
Further Readings
6. Data Persistence
Introduction
Structure
Understanding ORM Tool
Introduction to Mongoose
Characteristics of Mongoose
Advantages of Mongoose
Disadvantages of Mongoose
Key Terminologies
Schema and Model
Connecting to MongoDB through Mongoose
Database connection
Basic Mongoose Operations
Create operation
Retrieve operation
Update operation
Delete operation
Real-world Example
Conclusion
Further Reading
7. Template Engines
Introduction
Structure
Templating engines
Working of template engines
Advantages of template engines
Disadvantages of template engines
Key components of template engines
HTML rendering with templates
Exploring the EJS template engine
Creating dynamic content using EJS
Conclusion
Further readings
8. Middleware Functions
Introduction
Structure
Introduction to Middleware
Importance of Middleware
Advantages of Using Middleware
Key Components of Middleware
Understanding the Next( ) Function
Using Inbuilt Middleware with Express
Types of Express Middleware
Application-level Middleware
Router-level Middleware
Built-in Middleware
Error Handling with Middleware
Third-party Middleware
List of Third-party Middleware
Creating our First Custom Middleware
Middleware Chaining
Conclusion
Further Readings
9. Authentication and Authorization
Introduction
Structure
Introduction to Authentication and Authorization
Brief about Authentication
Importance of Authentication
Authentication Types
Popular Authentication Techniques
Password-based Authentication
Passwordless Authentication
2FA/MFA
Single Sign-On (SSO)
Social Authentication
Brief about Authorization
Importance of Authorization
Authorization Techniques
Role-based Access Control
JSON Web Token
SAML
OpenID Authorization
OAuth
Difference between Authentication and Authorization
Securing Real-World APIs
Running Application
Conclusion
Further Readings
10. Socket.IO
Introduction
Structure
Exploring WebSocket programming
Introducing WebSocket
Usage of WebSockets
Advantages of WebSocket
Disadvantages of WebSocket
WebSocket versus HTTP
Establishing WebSocket Connections
WebSocket Protocol
Using Socket.IO with Express
Communication between Client and Server
Reasons to Choose Node.js and Socket.IO
Creating a Simple Chat Application
Conclusion
Further Readings
11. Handling and Logging Errors
Introduction
Structure
Defining Errors in JavaScript
Types of Errors
Defining Error Handling in JavaScript
Factors Causing Errors in Node.js
Types of Errors in Node.js
Functional Errors
Programming Errors
Understanding Error Handling in Depth
Error Handling Inside Express
Express.js Default Error Handling
Custom Error Handling
Handling Errors Using Middleware Functions
Adding Multiple Middleware Handlers
Building Express Applications with Error Handling
Logging Errors in Node.js Application
Using Winston Logger
Conclusion
Further Readings
12. TDD with Mocha and Chai
Introduction
Structure
Node.js Unit Testing Concepts
Importance of Unit Testing
Test-Driven Development Fundamentals
Test-Driven Development Workflows
Key Principles of Test-Driven Development
Different Types of Testing Frameworks
Unit Testing key concepts
Advantages of Unit Testing in Node.js
Node.js Unit Test Anatomy
Advantages of using Mocha and Chai
Practical tips for writing unit tests
Methods to write unit tests
Introduction to Behavior-Driven Development (BDD)
BDD and Unit Testing
Key Benefits of BDD
Installation of Mocha and Chai
Hooks used in writing Unit Tests
BeforeEach
AfterEach
Spices
Stubs
Mocks
Async code
Callback and Promise
Conclusion
Further Readings
13. Debugging
Introduction
Structure
Introduction to Debugging
Importance of Debugging
Debugging Strategies
Debugging Techniques
Using Console.log
Using Node Inspector
Using Node.js debug module
Debugging an Express Application
Creating a Node.js application
Installing the Node.js debugger using “Nodemon”
Start debugging in VS Code
Run the debugger with Breakpoint
Conclusion
Further Readings
14. Build and Deployments
Introduction
Structure
Creating an NPM Package
Initializing Git Repository
Initializing NPM
Creating the First NPM Package
Testing the NPM Package
Running test application
Publishing Your NPM Package
Introduction to Continuous Integration and Continuous Delivery
Defining Continuous Integration (CI)
Defining Continuous Delivery (CD)
Defining Continuous Deployment (CD)
Defining Continuous Testing (CT)
Key elements of CI/CD
Importance of CI/CD
Deployment Service
Deployment pipeline
Advantages of pipeline deployment
Key components of the deployment pipeline
Stages of Deployment Pipeline
Introduction of pipeline tools
Deploying Node.js applications Using Docker
Creating a demo project
Creating Dockerfile
Building the Docker image
Running docker image as a container
Kubernetes Introduction
Key Components of Kubernetes
Kubernetes deployment and services background
Deploying Node.js applications to a Kubernetes cluster
Conclusion
Further Readings
15. Future Scope
Introduction
Structure
Distributed Systems
Centralized systems vs Distributed systems
Key Features of Distributed Architecture
Advantages of distributed systems
Disadvantages of distributed systems
Event-based programming
Building event-driven applications in Node.js
Messaging systems like Kafka
Key concepts of Kafka
Running Kafka locally
Multi-threaded system
Advantages of Multithreading
Running parallel child processes in Node.js
Define Worker Threads
Use of worker threads
Child process example
Conclusion
Further Readings
Index