
Node & Express in One Book
Description
Book Introduction
The Complete Guide to Evolved JavaScript, Node, and Express
Let's create a dynamic web application with Node and Express, the core of the JavaScript development stack.
We'll walk you through the website development process and explain the basics of Express.
Covers everything about web development, from server-side rendering to developing APIs suitable for single-page applications (SPAs).
For front-end and back-end engineers familiar with JavaScript, we also provide best practices for building multi-page and hybrid web apps with Express.
Let's create a dynamic web application with Node and Express, the core of the JavaScript development stack.
We'll walk you through the website development process and explain the basics of Express.
Covers everything about web development, from server-side rendering to developing APIs suitable for single-page applications (SPAs).
For front-end and back-end engineers familiar with JavaScript, we also provide best practices for building multi-page and hybrid web apps with Express.
- You can preview some of the book's contents.
Preview
index
CHAPTER 1: INTRODUCING EXPRESS
1.1 The JavaScript Revolution
1.2 Introduction to Express
1.3 Server-side and client-side applications
1.4 A Brief History of Express
1.5 Node: A New Web Server
1.6 Node Ecosystem
1.7 License
1.8 In conclusion
CHAPTER 2: GETTING STARTED WITH NODE
2.1 Node Installation
2.2 Using the Terminal
2.3 Editor
2.4 npm
A simple web server built with 2.5 nodes
2.6 Departure by Express
CHAPTER 3: Save Time with Express
3.1 Scaffolding
3.2 Meadowrock Travel Agency Website
3.3 Initial Stage
3.4 In conclusion
CHAPTER 4 Best Practices and Version Management
4.1 File and Directory Structure
4.2 Best Practices
4.3 Version Control
4.4 How to use Git in the book
4.5 npm package
4.6 Project Metadata
4.7 Node Module
4.8 In conclusion
CHAPTER 5 QUALITY ASSURANCE
5.1 QA Plan
5.2 Is QA worth it?
5.3 Logic and Expression
5.4 Test Types
5.5 QA Techniques Overview
5.6 Jest Installation and Configuration
5.7 Unit Testing
5.8 Integration Testing
5.9 Lint
5.10 Continuous Integration
5.11 In closing
CHAPTER 6 Request and Response Objects
6.1 Parts of a URL
6.2 HTTP Request Methods
6.3 Request Headers
6.4 Response Headers
6.5 Internet Media Types
6.6 Request Body
6.7 Request Object
6.8 Response Object
6.9 More Information
6.10 Simple Example
6.11 In conclusion
CHAPTER 7 TEMPLATES USING HANDLEBAR
7.1 There is only one absolute rule:
7.2 Choosing a Template Engine
7.3 Pug: A Unique Approach
7.4 Handlebar Basics
7.5 In conclusion
CHAPTER 8 FORM PROCESSING
8.1 Sending client data to the server
8.2 HTML Form
8.3 Encoding
8.4 Other ways to handle forms
8.5 Form Processing with Express
8.6 Sending form data using the fetch API
8.7 File Upload
8.8 File Upload UI Improvements
8.9 In conclusion
CHAPTER 9 Cookies and Sessions
9.1 Credential Delegation
9.2 Express and Cookies
9.3 Cookie Experiment
Session 9.4
9.5 Implementing Flash Messages Through Sessions
9.6 How to Use Sessions
9.7 In conclusion
CHAPTER 10 Middleware
10.1 Middleware Principles
10.2 Middleware Example
10.3 Popular Middleware
10.4 Third-Party Middleware
10.5 In conclusion
CHAPTER 11 Sending Emails
11.1 SMTP, MSA, MTA
11.2 Receiving emails
11.3 Email Headers
11.4 Email Format
11.5 HTML Email
11.6 Nodemailer
11.7 Things to Consider When Sending in Bulk
11.8 Sending HTML Email
11.9 In conclusion
CHAPTER 12 Practical Environment
12.1 Execution Environment
12.2 Environment-specific settings
12.3 Running Node Processes
12.4 Website Expansion
12.5 Website Monitoring
12.6 Stress Test
12.7 In conclusion
CHAPTER 13 Continuity
13.1 Filesystem Persistence
13.2 Cloud Persistence
13.3 Database Persistence
13.4 Database for Session Storage
13.5 In conclusion
CHAPTER 14 ROUTING
14.1 Routes and SEO
14.2 Subdomains
14.3 Route handlers are middleware
14.4 Route Paths and Regular Expressions
14.5 Route Parameters
14.6 Route Configuration
14.7 Declaring Routes in Modules
14.8 Logical Grouping of Handlers
14.9 View Auto Rendering
14.10 In conclusion
CHAPTER 15 REST API and JSON
15.1 JSON and XML
15.2 API
15.3 API Error Reporting
15.4 Cross-Origin Resource Sharing (CORS)
15.5 Test
15.6 Providing APIs via Express
15.7 In conclusion
CHAPTER 16 Single-Page Applications
16.1 A Brief History of Web Application Development
16.2 SPA Framework
16.3 Building a React App
16.4 React Basics
16.5 In conclusion
CHAPTER 17 Static Content
17.1 Performance Considerations
17.2 Content Delivery Network
17.3 Designing with CDN in mind
17.4 Static Resource Caching
17.5 Modifying Static Content
17.6 In conclusion
CHAPTER 18 SECURITY
18.1 HTTPS
18.2 CSRF
18.3 Certification
18.4 In conclusion
CHAPTER 19 INTEGRATION WITH THIRD-PARTY APIS
19.1 Social Media
19.2 Geocoding
19.3 Weather Data
19.4 In conclusion
CHAPTER 20 DEBUGGING
20.1 First Principle of Debugging
20.2 Using the REPL and Console
20.3 Node's built-in debugger
20.4 Node Inspector Client
20.5 Debugging Asynchronous Functions
20.6 Express Debugging
20.7 In conclusion
CHAPTER 21 Site Opening
21.1 Domain Registration and Hosting
21.2 In conclusion
CHAPTER 22 MAINTENANCE
22.1 Maintenance Principles
22.2 Code Reuse and Refactoring
22.3 In conclusion
CHAPTER 23 ADDITIONAL MATERIALS
23.1 Online Documentation
23.2 Periodicals
23.3 Stack Overflow
23.4 Contributing to Express
23.5 In conclusion
APPENDIX A Form Processing
A.1 Form processing using Express
A.2 File Upload
APPENDIX B Cookies and Sessions
B.1 Implementing Flash Messages Through Sessions
APPENDIX C Middleware
C.1 Connecting Middleware
APPENDIX D Email Transmission
D.1 Nodemailer
D.2 Sending HTML Email
APPENDIX E Continuity
E.1 Database Layer Abstraction
E.2 Connecting to a Database with Mongoose
E.3 Saving initial data
E.4 Importing Data
E.5 Add data
E.6 Adding Data to PostgreSQL
E.7 Database for Session Storage
APPENDIX F Routing
F.1 subdomain
F.2 Route handler is middleware
F.3 Route Parameters
Declaring routes in the F.4 module
APPENDIX G REST API and JSON
Providing API via G.1 Express
APPENDIX H Single-Page Applications
H.1 Building a React App
H.2 React Basics
APPENDIX I Integration with Third-Party APs
I.1 Geocoding Data
I.2 Weather Data
1.1 The JavaScript Revolution
1.2 Introduction to Express
1.3 Server-side and client-side applications
1.4 A Brief History of Express
1.5 Node: A New Web Server
1.6 Node Ecosystem
1.7 License
1.8 In conclusion
CHAPTER 2: GETTING STARTED WITH NODE
2.1 Node Installation
2.2 Using the Terminal
2.3 Editor
2.4 npm
A simple web server built with 2.5 nodes
2.6 Departure by Express
CHAPTER 3: Save Time with Express
3.1 Scaffolding
3.2 Meadowrock Travel Agency Website
3.3 Initial Stage
3.4 In conclusion
CHAPTER 4 Best Practices and Version Management
4.1 File and Directory Structure
4.2 Best Practices
4.3 Version Control
4.4 How to use Git in the book
4.5 npm package
4.6 Project Metadata
4.7 Node Module
4.8 In conclusion
CHAPTER 5 QUALITY ASSURANCE
5.1 QA Plan
5.2 Is QA worth it?
5.3 Logic and Expression
5.4 Test Types
5.5 QA Techniques Overview
5.6 Jest Installation and Configuration
5.7 Unit Testing
5.8 Integration Testing
5.9 Lint
5.10 Continuous Integration
5.11 In closing
CHAPTER 6 Request and Response Objects
6.1 Parts of a URL
6.2 HTTP Request Methods
6.3 Request Headers
6.4 Response Headers
6.5 Internet Media Types
6.6 Request Body
6.7 Request Object
6.8 Response Object
6.9 More Information
6.10 Simple Example
6.11 In conclusion
CHAPTER 7 TEMPLATES USING HANDLEBAR
7.1 There is only one absolute rule:
7.2 Choosing a Template Engine
7.3 Pug: A Unique Approach
7.4 Handlebar Basics
7.5 In conclusion
CHAPTER 8 FORM PROCESSING
8.1 Sending client data to the server
8.2 HTML Form
8.3 Encoding
8.4 Other ways to handle forms
8.5 Form Processing with Express
8.6 Sending form data using the fetch API
8.7 File Upload
8.8 File Upload UI Improvements
8.9 In conclusion
CHAPTER 9 Cookies and Sessions
9.1 Credential Delegation
9.2 Express and Cookies
9.3 Cookie Experiment
Session 9.4
9.5 Implementing Flash Messages Through Sessions
9.6 How to Use Sessions
9.7 In conclusion
CHAPTER 10 Middleware
10.1 Middleware Principles
10.2 Middleware Example
10.3 Popular Middleware
10.4 Third-Party Middleware
10.5 In conclusion
CHAPTER 11 Sending Emails
11.1 SMTP, MSA, MTA
11.2 Receiving emails
11.3 Email Headers
11.4 Email Format
11.5 HTML Email
11.6 Nodemailer
11.7 Things to Consider When Sending in Bulk
11.8 Sending HTML Email
11.9 In conclusion
CHAPTER 12 Practical Environment
12.1 Execution Environment
12.2 Environment-specific settings
12.3 Running Node Processes
12.4 Website Expansion
12.5 Website Monitoring
12.6 Stress Test
12.7 In conclusion
CHAPTER 13 Continuity
13.1 Filesystem Persistence
13.2 Cloud Persistence
13.3 Database Persistence
13.4 Database for Session Storage
13.5 In conclusion
CHAPTER 14 ROUTING
14.1 Routes and SEO
14.2 Subdomains
14.3 Route handlers are middleware
14.4 Route Paths and Regular Expressions
14.5 Route Parameters
14.6 Route Configuration
14.7 Declaring Routes in Modules
14.8 Logical Grouping of Handlers
14.9 View Auto Rendering
14.10 In conclusion
CHAPTER 15 REST API and JSON
15.1 JSON and XML
15.2 API
15.3 API Error Reporting
15.4 Cross-Origin Resource Sharing (CORS)
15.5 Test
15.6 Providing APIs via Express
15.7 In conclusion
CHAPTER 16 Single-Page Applications
16.1 A Brief History of Web Application Development
16.2 SPA Framework
16.3 Building a React App
16.4 React Basics
16.5 In conclusion
CHAPTER 17 Static Content
17.1 Performance Considerations
17.2 Content Delivery Network
17.3 Designing with CDN in mind
17.4 Static Resource Caching
17.5 Modifying Static Content
17.6 In conclusion
CHAPTER 18 SECURITY
18.1 HTTPS
18.2 CSRF
18.3 Certification
18.4 In conclusion
CHAPTER 19 INTEGRATION WITH THIRD-PARTY APIS
19.1 Social Media
19.2 Geocoding
19.3 Weather Data
19.4 In conclusion
CHAPTER 20 DEBUGGING
20.1 First Principle of Debugging
20.2 Using the REPL and Console
20.3 Node's built-in debugger
20.4 Node Inspector Client
20.5 Debugging Asynchronous Functions
20.6 Express Debugging
20.7 In conclusion
CHAPTER 21 Site Opening
21.1 Domain Registration and Hosting
21.2 In conclusion
CHAPTER 22 MAINTENANCE
22.1 Maintenance Principles
22.2 Code Reuse and Refactoring
22.3 In conclusion
CHAPTER 23 ADDITIONAL MATERIALS
23.1 Online Documentation
23.2 Periodicals
23.3 Stack Overflow
23.4 Contributing to Express
23.5 In conclusion
APPENDIX A Form Processing
A.1 Form processing using Express
A.2 File Upload
APPENDIX B Cookies and Sessions
B.1 Implementing Flash Messages Through Sessions
APPENDIX C Middleware
C.1 Connecting Middleware
APPENDIX D Email Transmission
D.1 Nodemailer
D.2 Sending HTML Email
APPENDIX E Continuity
E.1 Database Layer Abstraction
E.2 Connecting to a Database with Mongoose
E.3 Saving initial data
E.4 Importing Data
E.5 Add data
E.6 Adding Data to PostgreSQL
E.7 Database for Session Storage
APPENDIX F Routing
F.1 subdomain
F.2 Route handler is middleware
F.3 Route Parameters
Declaring routes in the F.4 module
APPENDIX G REST API and JSON
Providing API via G.1 Express
APPENDIX H Single-Page Applications
H.1 Building a React App
H.2 React Basics
APPENDIX I Integration with Third-Party APs
I.1 Geocoding Data
I.2 Weather Data
Publisher's Review
The most modern web application implemented with Node and Express.
When it comes to building modern web applications, you can't talk about Node and Express.
By leveraging the diverse and useful tools of these two core technologies, you can build applications with much better code and structure than before.
This book will teach you the best ways to build websites by implementing examples using Node and Express.
From Handlebars and middleware, which are templates required for website implementation, authentication and authorization, and third-party connectivity, to how to establish a maintenance plan, we've organized the concepts so that you can learn them in the order they are needed for the web development timeline.
If you follow the examples, your skills will soon be upgraded to the level where you can create your own website.
▶ Node 14, Express 4 compatible!
▶ Prerequisites - Beginner to Intermediate JavaScript
- Node & Express Beginner
- Beginner Database
What's changed in the 2nd edition
The tools used with Express, including middleware, have changed dramatically.
JavaScript itself has evolved, and the way we design web applications has also undergone a transformation from pure server-side rendering to single-page applications (SPAs).
While most of the principles included in the first edition remain valid and useful, the practical techniques and recommended tools have changed dramatically.
In line with this changing trend, the second edition has been revised to explain how to use Express as a server for APIs and static resources, and also includes SPA examples so that you can experience the evolution of Node and Express.
We've also added an appendix for Korean readers to help them follow the examples more easily.
Key Contents
- Creating a template system for dynamic data rendering
-Learn about request/response objects, middleware, and URL routing.
-Test in an environment similar to the actual environment
-Managing persistence in MongoDB and PostgreSQL
-Providing resources to other programs using REST API
Building secure apps with authentication, authorization, and HTTPS
-Connect social media and location information
- Establishing an app launch and maintenance plan
-Learn important debugging techniques
When it comes to building modern web applications, you can't talk about Node and Express.
By leveraging the diverse and useful tools of these two core technologies, you can build applications with much better code and structure than before.
This book will teach you the best ways to build websites by implementing examples using Node and Express.
From Handlebars and middleware, which are templates required for website implementation, authentication and authorization, and third-party connectivity, to how to establish a maintenance plan, we've organized the concepts so that you can learn them in the order they are needed for the web development timeline.
If you follow the examples, your skills will soon be upgraded to the level where you can create your own website.
▶ Node 14, Express 4 compatible!
▶ Prerequisites - Beginner to Intermediate JavaScript
- Node & Express Beginner
- Beginner Database
What's changed in the 2nd edition
The tools used with Express, including middleware, have changed dramatically.
JavaScript itself has evolved, and the way we design web applications has also undergone a transformation from pure server-side rendering to single-page applications (SPAs).
While most of the principles included in the first edition remain valid and useful, the practical techniques and recommended tools have changed dramatically.
In line with this changing trend, the second edition has been revised to explain how to use Express as a server for APIs and static resources, and also includes SPA examples so that you can experience the evolution of Node and Express.
We've also added an appendix for Korean readers to help them follow the examples more easily.
Key Contents
- Creating a template system for dynamic data rendering
-Learn about request/response objects, middleware, and URL routing.
-Test in an environment similar to the actual environment
-Managing persistence in MongoDB and PostgreSQL
-Providing resources to other programs using REST API
Building secure apps with authentication, authorization, and HTTPS
-Connect social media and location information
- Establishing an app launch and maintenance plan
-Learn important debugging techniques
GOODS SPECIFICS
- Date of issue: May 1, 2021
- Page count, weight, size: 448 pages | 783g | 183*235*30mm
- ISBN13: 9791162244227
- ISBN10: 1162244224
You may also like
카테고리
korean
korean