Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering Node.js Web Development
  • Table Of Contents Toc
  • Feedback & Rating feedback
Mastering Node.js Web Development

Mastering Node.js Web Development

By : Adam Freeman
4.9 (7)
close
close
Mastering Node.js Web Development

Mastering Node.js Web Development

4.9 (7)
By: Adam Freeman

Overview of this book

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.
Table of Contents (26 chapters)
close
close
Lock Free Chapter
1
Putting Node.js in Context
10
Node.js in Detail
18
SportsStore
25
Other Books You May Enjoy
26
Index

Debugging javascript code

Unit testing is the process of confirming code behaves as it should; debugging is the process of figuring out why it doesn’t. Before starting, use Ctrl + C to stop the build process and the unit-testing process. Once the processes have stopped, run the command shown in Listing 8.18 to start the webpack development server on its own. The debugger will be applied to the backend server, which will be started on its own, but relies on webpack to handle requests for client-side content.

Listing 8.18: Starting the webpack development server

npm run client

The next step is to configure the TypeScript compiler so that it generates source maps, as shown in Listing 8.19, which lets the debugger correlate the pure JavaScript being executed by Node.js with the TypeScript code written by the developer.

Listing 8.19: Enabling source maps in the tsconfig.json file in the src folder

{
    "extends": "@tsconfig/node20/tsconfig...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering Node.js Web Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon