Movatterモバイル変換


[0]ホーム

URL:


Packt
Search iconClose icon
Search icon CANCEL
Subscription
0
Cart icon
Your Cart(0 item)
Close icon
You have no products in your basket yet
Save more on your purchases!discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Profile icon
Account
Close icon

Change country

Modal Close icon
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timerSALE ENDS IN
0Days
:
00Hours
:
00Minutes
:
00Seconds
Home> Web Development> Server Side Web Development> Mastering Node.js Web Development
Mastering Node.js Web Development
Mastering Node.js Web Development

Mastering Node.js Web Development: Go on a comprehensive journey from the fundamentals to advanced web development with Node.js

Arrow left icon
Profile Icon Adam Freeman
Arrow right icon
$35.98$39.99
Full star iconFull star iconFull star iconFull star iconHalf star icon4.9(8 Ratings)
eBookJun 2024778 pages1st Edition
eBook
$35.98 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$35.98 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature iconInstant access to your Digital eBook purchase
Product feature icon Download this book inEPUB andPDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature iconDRM FREE - Read whenever, wherever and however you want
Product feature iconAI Assistant (beta) to help accelerate your learning
OR

Contact Details

Modal Close icon
Payment Processing...
tickCompleted

Billing Address

Table of content iconView table of contentsPreview book icon Preview Book

Mastering Node.js Web Development

Getting Ready

Node.js is aserver-side JavaScript runtime that has become one of the most popular platforms for creating web applications. Node.js benefits from a vast library of packages and frameworks, providing every kind of feature and function imaginable, built on a rich API that Node.js provides for handling low-level tasks.

This book is different from most other Node.js books because it explains the relationship between the Node.js API and popular web application packages. Each chapter explains how a core feature required for web development can be implemented using the Node.js API, before replacing the custom implementation with a popular and well-tested open-source package.

Understanding the Node.js API gives you a solid understanding of how web application features really work, and using popular packages lets you build those features without having to write custom code. When problems arise, as they will in any project, your knowledge of the Node.js API will give...

Join our book community on Discord

https://packt.link/EarlyAccess

Node.js is a server-side JavaScript runtime that has become one of the most popular platforms for creating web applications. Node.js provides a rich API that handles common tasks and benefits from a vast library of open-source and commercial packages and frameworks that provide every kind of feature and function imaginable.

This book dives deep into the different ways that Node.js can be used to create web applications, with each feature described in detail so you understand what’s happening when you start your own Node.js web application project.

What do you need to know?

To follow the examples in this book, you should be familiar with HTML and CSS, and understand the basics of JavaScript development. I provide a primer for the JavaScript features that are useful for this book, but this isn’t a complete language tutorial.

How do you set up your development environment?

The development tools needed for Node.js development are set up in Chapter 2. Later chapters require additional tools and packages, but full instructions are provided.

What is the structure of this book?

This book is split into three parts, each of which covers a set of related topics.

  • Part 1, Putting Node.js in Context: Part 1 of this book provides the information you need to get started with Node.js development. It describes the tools required for Node.js development, the basic JavaScript features required to follow the examples in this book, and the core Node.js support for web applications.
  • Part 2, Node.js in Detail: Part 2 of this book covers the features required to create a fully featured web application, including producing HTML content, using databases, and creating RESTful web services. A custom implementation of each feature is used to explain how it works in detail, before being replaced with a popular open-source project to demonstrate how the same results can be achieved in a real project.
  • Part 3, SportsStore: The chapters in parts 1 and 2 focus on individual features, with deep dives that explain how that feature works and how it is...

Are there lots of examples?

There areloads of examples. The best way to learn is by example, and I have packed as many of them into this book as I can. To maximize the number of examples in this book, I have adopted a simple convention to avoid listing the same code or content repeatedly. When I create a file, I will show its full contents, just as I have inListing 1.1. I include the name of the file and its folder in the listing’s header, and I show the changes that I have made in bold.

Listing 1.1. Asserting an Unknown Value in the index.ts File in the primer Folder
function getUKCapital() : string {     return "London";}function writeCity(f: () => string)  {    console.log(`City: ${f()}`)}writeCity(getUKCapital);writeCity(() => "Paris");let myCity = "Rome";writeCity(() => myCity);

This is a listing fromChapter 3, which shows the contents of a file calledindex.ts that can be found in theprimer folder. Don’t worry about...

Where can you get the example code?

You can download the example projects for all the chapters in this book fromhttps://github.com/PacktPublishing/Mastering-Node.js-Web-Development. The download is available without charge and contains everything that you need to follow the examples without having to type in all of the code.

What if you have problems following the examples?

The first thing to do is to go back to the start of the chapter and begin over. Most problems are caused by skipping a step or not fully applying the changes shown in a listing. Pay close attention to the emphasis in code listings, which highlights the changes that are required.

Next, check the errata/corrections list, which is included in the book’s GitHub repository. Technical books are complex, and mistakes are inevitable, despite my best efforts and those of my editors. Check the errata list for the list of known errors and instructions to resolve them.

If you still have problems, then download the project for the chapter you are reading from the book’s GitHub repository,https://github.com/PacktPublishing/Mastering-Node.js-Web-Development, and compare it to your project. I created the code for the GitHub repository by working through each chapter, so you should have the same files with the same contents in your project...

What if you find an error in the book?

You can report errors to me by email atadam@adam-freeman.com, although I ask that you first check the errata/corrections list for this book, which you can find in the book’s GitHub repository athttps://github.com/PacktPublishing/Mastering-Node.js-Web-Development, in case it has already been reported.

I add errors that are likely to confuse readers, especially problems with example code, to the errata/corrections file on the GitHub repository, with a grateful acknowledgment to the first reader who reported it. I also publish a list of less serious issues, which usually means errors in the text surrounding examples, and which are unlikely to confuse.

How do you contact the author?

You can email me atadam@adam-freeman.com. It has been a few years since I started publishing an email address in my books. I wasn’t entirely sure that it was a good idea, but I am glad that I did it. I have received emails from around the world, from readers working or studying in every industry, and—for the most part, anyway—the emails are positive, polite, and a pleasure to receive.

I try to reply promptly, but I get many emails, and sometimes I get a backlog, especially when I have my head down trying to finish writing a book. I always try to help readers who are stuck with an example in the book, although I ask that you follow the steps described earlier in this chapter before contacting me.

While I welcome reader emails, there are some common questions for which the answers will always be “no.” I am afraid that I won’t write the code for your new startup, help you with your college assignment, get involved...

Left arrow icon

Page1 of 10

Right arrow icon
Download code iconDownload Code

Key benefits

  • Server-side applications with Node.js, covering HTTP requests, static and dynamic content delivery, form data processing, and RESTful web services
  • Hands-on examples, step-by-step code listings, and best practices for building and deploying server applications
  • Common services like authentication, managing application state, and performance optimization

Description

Dive into the world of Node.js with this comprehensive guide, taking you from foundational concepts to practical web development mastery. Written by an industry veteran with over 50 programming books under his belt, this book will help both beginners and seasoned developers.Gain a deep understanding of the most important server-side features in web development with Node.js. The first part of the book will get you up to speed with basic features of Node.js and TypeScript. In the second part, you’ll elevate your skills by creating simplified implementations of key server-side features to understand how they work and how they are presented to clients. Armed with the understanding gained from implementing each feature, you will be able to replace custom code with production-ready open-source packages.The third part will help you understand how server-side features are combined for practical web development. Using Adam Freeman’s signature SportsStore application, you will learn how to develop client and server-side components, culminating in a thorough application deployment preparation.By the end of this Node.js book, you will be able to build and deploy server applications to support HTTP clients, including JavaScript applications created with frameworks such as Angular and React.

Who is this book for?

This book is for programmers with a basic knowledge of HTML and CSS who are transitioning into JavaScript development and are looking to master the implementation of server-side applications.

What you will learn

  • Process HTTP requests and perform file operations
  • Create RESTful web services that can be consumed by client-side apps
  • Work with server apps serving JavaScript clients, such as React and Angular
  • Leverage Node.js to work with popular databases
  • Apply practical knowledge through building the SportsStore project
  • Authenticate users and authorize access to application features

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date :Jun 24, 2024
Length:778 pages
Edition :1st
Language :English
ISBN-13 :9781837637355
Languages :
Tools :

What do you get with eBook?

Product feature iconInstant access to your Digital eBook purchase
Product feature icon Download this book inEPUB andPDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature iconDRM FREE - Read whenever, wherever and however you want
Product feature iconAI Assistant (beta) to help accelerate your learning
OR

Contact Details

Modal Close icon
Payment Processing...
tickCompleted

Billing Address

Product Details

Publication date :Jun 24, 2024
Length:778 pages
Edition :1st
Language :English
ISBN-13 :9781837637355
Category :
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99billed monthly
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconSimple pricing, no contract
$199.99billed annually
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconChoose a DRM-free eBook or Video every month to keep
Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick iconExclusive print discounts
$279.99billed in 18 months
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconChoose a DRM-free eBook or Video every month to keep
Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick iconExclusive print discounts

Frequently bought together


React and React Native
React and React Native
Read more
Apr 2024518 pages
Full star icon4.3 (10)
eBook
eBook
$31.99$35.99
$43.99
Modern Full-Stack React Projects
Modern Full-Stack React Projects
Read more
Jun 2024506 pages
Full star icon4.8 (9)
eBook
eBook
$31.99$35.99
$44.99
Mastering Node.js Web Development
Mastering Node.js Web Development
Read more
Jun 2024778 pages
Full star icon4.9 (8)
eBook
eBook
$35.98$39.99
$49.99
Stars icon
Total$138.97
React and React Native
$43.99
Modern Full-Stack React Projects
$44.99
Mastering Node.js Web Development
$49.99
Total$138.97Stars icon

Table of Contents

26 Chapters
Putting Node.js in ContextChevron down iconChevron up icon
Putting Node.js in Context
Getting ReadyChevron down iconChevron up icon
Getting Ready
What do you need to know?
How do you set up your development environment?
Are there lots of examples?
Where can you get the example code?
What if you have problems following the examples?
What if you find an error in the book?
How do you contact the author?
What if you really enjoyed this book?
What if this book has made you angry?
Working with the Node.js ToolsChevron down iconChevron up icon
Working with the Node.js Tools
Getting ready
Using Node.js
Understanding the npm tool
Summary
JavaScript and TypeScript PrimerChevron down iconChevron up icon
JavaScript and TypeScript Primer
Preparing for this chapter
Understanding JavaScript confusion
Understanding the basic TypeScript/JavaScript features
Defining and using functions
Working with arrays
Working with objects
Working with JavaScript modules
Summary
Understanding Node.js ConcurrencyChevron down iconChevron up icon
Understanding Node.js Concurrency
Preparing for this chapter
Understanding (simplified) server code execution
Using the Node.js API
Executing custom code
Summary
Handling HTTP RequestsChevron down iconChevron up icon
Handling HTTP Requests
Preparing for this chapter
Listening for HTTP requests
Understanding HTTP requests
Understanding HTTP responses
Supporting HTTPS requests
Using third-party enhancements
Summary
Using Node.js StreamsChevron down iconChevron up icon
Using Node.js Streams
Preparing for this chapter
Understanding streams
Using Node.js streams
Transforming data
Using third-party enhancements
Summary
Using Bundles and Content SecurityChevron down iconChevron up icon
Using Bundles and Content Security
Preparing for this chapter
Packaging client files
Using a content security policy
Summary
Unit Testing and DebuggingChevron down iconChevron up icon
Unit Testing and Debugging
Preparing for this chapter
Unit testing Node.js applications
Debugging javascript code
Summary
Node.js in DetailChevron down iconChevron up icon
Node.js in Detail
Creating the Example ProjectChevron down iconChevron up icon
Creating the Example Project
Understanding the project
Creating the project
Creating the configuration files
Creating the backend server
Creating the HTML and client-side JavaScript code
Running the example application
Summary
Using HTML TemplatesChevron down iconChevron up icon
Using HTML Templates
Preparing for this chapter
Using server-side HTML templates
Using client-side HTML templates
Using a template package
Summary
Handling Form DataChevron down iconChevron up icon
Handling Form Data
Preparing for this chapter
Receiving form data
Sanitizing form data
Validating form data
Performing client-side validation
Using a package for validation
Summary
Using DatabasesChevron down iconChevron up icon
Using Databases
Preparing for this chapter
Using a database
Using an ORM package
Summary
Using SessionsChevron down iconChevron up icon
Using Sessions
Preparing for this chapter
Correlating stateless HTTP requests
Using sessions
Using a package for sessions
Summary
Creating RESTful Web ServicesChevron down iconChevron up icon
Creating RESTful Web Services
Preparing for this chapter
Understanding web services
Creating a basic RESTful web service
Updating data
Validating client data
Using a package for web services
Summary
Authenticating and Authorizing RequestsChevron down iconChevron up icon
Authenticating and Authorizing Requests
Preparing for this chapter
Understanding the end-to-end process
Authenticating users
Authenticating requests
Authenticating web service requests
Authorizing requests
Using packages for authentication and authorization
Summary
SportsStoreChevron down iconChevron up icon
SportsStore
SportsStore: A Real ApplicationChevron down iconChevron up icon
SportsStore: A Real Application
Understanding the project structure
Creating the project
Starting the data model
Summary
SportsStore: Navigation and CartChevron down iconChevron up icon
SportsStore: Navigation and Cart
Preparing for this chapter
Navigating the catalog
Creating the shopping cart
Creating the cart summary
Summary
SportsStore: Orders and ValidationChevron down iconChevron up icon
SportsStore: Orders and Validation
Preparing for this chapter
Handling orders
Implementing the order flow
Fixing the return URL
Summary
SportsStore: AuthenticationChevron down iconChevron up icon
SportsStore: Authentication
Preparing for this chapter
Understanding the OAuth authentication process
Creating the Google OAuth credentials
Getting profile details with OAuth
Using the OAuth profile data
Summary
SportsStore: AdministrationChevron down iconChevron up icon
SportsStore: Administration
Preparing for this chapter
Understanding HTML RESTful web services
Preparing for client development
Administering the product catalog
Administering orders
Fixing the URLs
Restricting access to administration features
Summary
SportsStore: DeploymentChevron down iconChevron up icon
SportsStore: Deployment
Preparing for this chapter
Installing Docker Desktop
Managing the database
Toggling the application environment
Using a database server
Creating the SportsStore Docker image
Composing the application and database servers
Setting up an HTTPS reverse proxy
Summary
Other Books You May EnjoyChevron down iconChevron up icon
Other Books You May Enjoy
IndexChevron down iconChevron up icon
Index

Recommendations for you

Left arrow icon
Full-Stack Flask and React
Full-Stack Flask and React
Read more
Oct 2023408 pages
Full star icon3.8 (5)
eBook
eBook
$27.99$31.99
$39.99
Real-World Web Development with .NET 9
Real-World Web Development with .NET 9
Read more
Dec 2024578 pages
Full star icon3.5 (4)
eBook
eBook
$35.98$39.99
$49.99
Django 5 By Example
Django 5 By Example
Read more
Apr 2024820 pages
Full star icon4.6 (40)
eBook
eBook
$35.98$39.99
$49.99
React and React Native
React and React Native
Read more
Apr 2024518 pages
Full star icon4.3 (10)
eBook
eBook
$31.99$35.99
$43.99
Scalable Application Development with NestJS
Scalable Application Development with NestJS
Read more
Jan 2025612 pages
Full star icon4.5 (6)
eBook
eBook
$27.99$31.99
$39.99
Responsive Web Design with HTML5 and CSS
Responsive Web Design with HTML5 and CSS
Read more
Sep 2022504 pages
Full star icon4.5 (57)
eBook
eBook
$31.99$35.99
$44.99
Modern Full-Stack React Projects
Modern Full-Stack React Projects
Read more
Jun 2024506 pages
Full star icon4.8 (9)
eBook
eBook
$31.99$35.99
$44.99
Learning Angular
Learning Angular
Read more
Jan 2025494 pages
Full star icon4 (6)
eBook
eBook
$31.99$35.99
$44.99
Right arrow icon

Customer reviews

Top Reviews
Rating distribution
Full star iconFull star iconFull star iconFull star iconHalf star icon4.9
(8 Ratings)
5 star87.5%
4 star12.5%
3 star0%
2 star0%
1 star0%
Filter icon Filter
Top Reviews

Filter reviews by




GiuseppeNov 09, 2024
Full star iconFull star iconFull star iconFull star iconFull star icon5
Good book! Well done!
Subscriber reviewPackt
N/AOct 07, 2024
Full star iconFull star iconFull star iconFull star iconFull star icon5
Excelent
Feefo Verified reviewFeefo
A. ZubarevJun 27, 2024
Full star iconFull star iconFull star iconFull star iconFull star icon5
I am still digesting this book (at about half of through), but it answered my relatively newbie questions already and I found the most difficult (for me it was the Node's code execution, concurrency model) topics explained so well I am not worried I can embrace the modern NodeJS - based Web development.I found the most precious the topics on data models, debugging and RESTFULL services ( I am on a data wrangling spree ). The real application example is a real gem - allows to solidify and repeat learn the material.The harder parts I wish could be easier are the ones on security, Docker and deployment in general.My advice for a book reader - learn the NPM commands and make helper scripts.
Amazon Verified reviewAmazon
KieranAug 02, 2024
Full star iconFull star iconFull star iconFull star iconFull star icon5
I am a C# developer and have touched on JS and TS when creating web applications, so I already have a basic understanding of them. However, this book would be great for someone with absolutely no experience with either as it takes you through all aspects required to progress through the books chapters culminating in the creation of a store with database support and full data validation. It even covers creating a docker image from the finished project.Overall a great read for beginners, I would highly recommend.
Amazon Verified reviewAmazon
Mike RourkeJul 01, 2024
Full star iconFull star iconFull star iconFull star iconFull star icon5
This book does an excellent job of covering development with Node.js and the surrounding web ecosystem. It starts from the ground up by introducing the required tooling and providing an overview of JavaScript and TypeScript. It runs the gamut on what you would normally be expected to know when building a Node.js app: HTTP, streams, HTML templates, databases, authentication, etc.For folks new to Node.js, this book will help get you up and running with a production grade app. For seasoned Node.js developers, it provides a good reference for filling in the blanks in your knowledge (or at least blowing the dust off the knowledge you already have).The book also covers some niche stuff like worker threads, which is nice if you don’t feel like scouring the web to figure out how to use them. I like how the author walks you through building an entire app in the last few chapters. Overall, I’d say it’s definitely worth a read!
Amazon Verified reviewAmazon
  • Arrow left icon Previous
  • 1
  • 2
  • Arrow right icon Next

About the author

Profile icon Adam Freeman
Adam Freeman
Adam Freeman is an experienced IT professional who started his career as a programmer. He has held senior positions in a range of companies, most recently serving as Chief Technology Officer and Chief Operating Officer of a global bank. He has written over 50 programming books, focusing mostly on web application development. Now retired, he spends his time writing and trying to make furniture.
Read more
See other products by Adam Freeman
Getfree access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook?Chevron down iconChevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?Chevron down iconChevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?Chevron down iconChevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support?Chevron down iconChevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks?Chevron down iconChevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook?Chevron down iconChevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.


[8]ページ先頭

©2009-2025 Movatter.jp