Node.js supports both client and server side applications. It is based on JavaScript and is very fast in operation. These distinctive features made node.js as one of the most powerful framework in the Java Ecosystem. JavaScript alone allows you to build real-time and scalable mobile and web applications. With this e-book, you will explore more on the node.js framework and how to use it efficiently for web development.
Average developers or beginners who struggle to understand node.js basics will find this book very helpful and productive. The book tried to put examples that simplify problems usually faced by the users like how asynchronous code works, what are modules, how big file can be read, node.js express, etc. You will find that lots of concepts that take a long time to master can be learned in a day or two.
If this is your first interaction with node.js and don’t want all sort of troubles that arise with the node, this edition is recommended. After going through this e-book, node.js will become an absolute pleasure.
Table of content
Chapter 1: Introduction
What is node.js
Why use Node.js
Features of Node.js
When to use and not use Node.js
Chapter 2: Download & Install Node.js
How to install node.js
Installing node through a package manager
Running your first Hello world application in Node.js
Chapter 3: Modules
What are modules in Node.js
Using modules in Node.js
Creating NPM modules
Extending modules
Publishing NPM Modules
Managing third party packages with npm
What is the package.json file
Chapter 4: Create Server and Get Data
Chapter 5: Node.js with Express
What is Express.js
Installing and using Express
What are Routes
Sample Web server using express.js
Chapter 6: Node.js with MongoDB
Node.js and NoSQL Databases
Using MongoDB and Node.js
How to build a node express app with MongoDB to store and serve content
Chapter 7: Promise, Generator, Event and Filestream
What are promises
Callbacks to promises
Generating promises with the BlueBird library
Creating a custom promise
Callbacks vs generators
Filestream in Node.js
Emitting Events
Chapter 8: Testing with Jasmine
Overview of Jasmine for testing Node.js applications
How to use Jasmine to test Node.js applications
ترجمه فارسی (ترجمه ماشینی)
Node.js هم از برنامه های سمت سرویس گیرنده و هم از برنامه های سمت سرور پشتیبانی می کند. این بر اساس جاوا اسکریپت است و عملکرد بسیار سریعی دارد. این ویژگی های متمایز، node.js را به یکی از قدرتمندترین فریم ورک ها در اکوسیستم جاوا تبدیل کرد. جاوا اسکریپت به تنهایی به شما این امکان را می دهد که برنامه های موبایل و وب را در زمان واقعی و مقیاس پذیر بسازید. با این کتاب الکترونیکی، بیشتر در مورد چارچوب node.js و نحوه استفاده موثر از آن برای توسعه وب کاوش خواهید کرد.
متوسط توسعه دهندگان یا مبتدیانی که در تلاش هستند درک اصول اولیه node.js این کتاب را بسیار مفید و سازنده خواهد یافت. در این کتاب سعی شده است تا مثال هایی ارائه شود که مشکلاتی را که معمولاً برای کاربران با آن مواجه هستند، ساده می کند، مانند نحوه عملکرد کدهای ناهمزمان، ماژول ها، حجم فایل های قابل خواندن، node.js express و غیره. مسلط شدن را میتوان در یک یا دو روز یاد گرفت.
اگر این اولین تعامل شما با node.js است و نمیخواهید انواع مشکلاتی که با گره، این نسخه توصیه می شود. پس از مرور این کتاب الکترونیکی، node.js به یک لذت مطلق تبدیل خواهد شد.
فهرست محتوا
فصل 1: مقدمه
node.js چیست
چرا از Node.js
Features استفاده کنیم از Node.js
زمان استفاده و عدم استفاده از Node.js
فصل 2: دانلود & Node.js را نصب کنید
نحوه نصب node.js
نصب گره از طریق مدیر بسته
اجرای اولین برنامه Hello world در Node.js
فصل 3: ماژول ها
ماژول ها در Node.js چیست
استفاده از ماژول ها در Node.js
ایجاد ماژول های NPM
توسعه ماژول ها
انتشار ماژول های NPM
مدیریت بسته های شخص ثالث با npm
فایل package.json چیست
فصل 4 : ایجاد سرور و دریافت داده
فصل 5: Node.js با Express
Express.js چیست
نصب و استفاده از Express
مسیرها چیستند
نمونه سرور وب با استفاده از express.js
فصل 6: Node.js با MongoDB
Node.js و پایگاه های داده NoSQL
استفاده از MongoDB و Node.js
نحوه ایجاد یک برنامه node express با MongoDB برای ذخیره و ارائه محتوا
فصل ۷: Promise، Generator، Event و Filestream
وعدهها چیستند
Callbacks to sozs
ایجاد وعدهها با کتابخانه BlueBird
ایجاد یک وعده سفارشی
Callbacks در مقابل ژنراتورها
Filestream در Node.js
انتشار رویدادها
فصل 8: آزمایش با Jasmine
نمای اجمالی Jasmine برای آزمایش Node. برنامه های js
نحوه استفاده از Jasmine برای آزمایش برنامه های Node.js
نقد و بررسیها
هنوز بررسیای ثبت نشده است.