After 6 months of writing in CSDN, what have I gained? Send the book at the end of the article~

Author's homepage: Ah Yue's Xiaodongdong homepage!

Learning: python and C/C++

Looking forward to your attention

Table of contents

A good opportunity, let me start the journey of CSDN

First let's look at some of my leaders

creative drive

 1W+ fans

What have I gained in CSDN?

  

high impression volume

Verify Creator Identity

The number of people in the community has increased dramatically

 Some little knowledge summarized

future goals

Two free books in this issue: "Node.js from Basics to Project Practice"

Foreword / Preface

Table of contents

Editor's Choice


A good opportunity, let me start the journey of CSDN

I was doing homework assigned by the teacher (python), and I had no clue at all. I went to Baidu at first, but later found that almost all the articles I found were CSDN articles. I thought to myself: Is this CSDN so powerful? ? So, with the mentality of giving it a try, I wrote a program that I have been together for a long time, and the teacher gave me a program. Up to now, I don’t know what’s wrong, but the first article has 5000 views

First let's look at some of my leaders

The first place: Geometric Heart Cool, please see the blog homepage: Geometry Heart Cool

 One of the few bloggers with 100,000 followers on the whole network is also one of my guides! !

The second place: Network Bean, please see the blog homepage: Network Bean

I hope to catch up with Douzi soon

creative drive

In fact, I didn’t have any hope at all at first, because the first two weeks of browsing did not break 20 (don’t laugh~) Later, I met the above two guides, which gave me great hope, and I thought to myself , Why do they have so many fans, I want to try it too, so that it will be easier to find a job in the future. . Then, I started the journey of CSDN! !

 1W+ fans

 I have been waiting for this day for a long time, which is enough to show one thing, as long as you work hard, you will definitely gain something (more or less), it is enough to show that we are taking this matter seriously, 100 articles, 1W fans, let’s work hard together , hope to break 1.5W in April haha

Take a look at my previous fan records:

Ha ha ha ha

I still remember that when I broke 1000 fans, I was so happy. The first thing I did when I went out was to forget my keys. . Later I found the lock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A big speechless...

 Guys, do you still remember your expressions when you had 1K fans? You can post them in the comment area, and I will reply one by one

What have I gained in CSDN?

The number one on the hot list (2 times) I can't find the one at the beginning

Weekly No. 1:

  

It was a holiday at that time, I wrote almost every day

high impression volume

The display volume of this article immediately exceeded 20W.

Verify Creator Identity

 At first I thought 500 followers would be enough. . After 2000 followers, it was certified

Now certified, buttonhole beads in the comments! !

The number of people in the community has increased dramatically

 I don't know what's going on, anyway, there are so many people suddenly, maybe it's a function of the hot list? ? Maybe for other bosses, these numbers are very small, but for a rookie, one word describes: wow! ! !

Many people are curious about how my browsing came about, so I won't explain too much, let's take a look together!

The force level has accumulated to level 7! !

 Some little knowledge summarized

Exaggerated title
1. Exaggerated title
. The title uses [Shock], [Shock], [Crazy], [Scared Half Life], etc., to express emotions/states/feelings exaggeratedly. The title uses [Internet users all over the world], [All men], [People from a certain country], [99%], etc., exaggerating the scope without basis
. The title uses [XX days effective], [radical cure], [immediate effect], etc., to make assertions or guarantees that do not conform to common sense on the effect or result
; The title uses [heavy], [terrible], [just now], etc., exaggerating the severity and urgency of the incident, causing excessive vigilance and attention;
. The title uses the most in the world], [the most advanced, [the best], [the worst], etc., to describe people and things to some extent to the extreme, but it violates reality and public perception.
2. A suspenseful title
. The title is incomplete, or hides key information, creating mystery, such as [it turned out to be..., [but., but wait halfway through, use ellipsis to replace key information, or use [insider], [uncovered], [ Truth] etc. instead of key information;
. The title intentionally uses strong turning words such as [even], [it is like this], [results, and [unexpectedly], etc., to create a sense of crisis and imagination; ·The title refers to vague, lacks the subject or does not specify the subject on purpose to
summarize A category of generality refers to pronoun substitutions, such as use it, [he, [she, [sentence [next second], [this kind of thing], etc.
3 Obsessive headlines
. The title uses expressions such as [Be timid and cautious], [Don’t read it and regret it for a lifetime], [Don’t blame me for not reminding] you, etc., to provoke and intimidate users to click. The title uses imperative words such as [have to watch], [must read], [absolutely must bookmark], requiring or inducing users to read

Don’t ask me how I know, just ask: One of my articles has been taken off the shelves

future goals

Hope to break through 2W fans before the summer vacation! Break through 3W after the summer vacation! ! ! Family members, see this, close each other, okay?

Two free books in this issue: "Node.js from Basics to Project Practice"

How to get it: 1. High-quality comments + the first number of likes can get a copy

                  2. Randomly select a good brother in the comment area to send a book!

                  

Deadline: April 11 at 12 noon!

Foreword / Preface

At present, all walks of life are facing the impact of various Internet technologies such as big data, artificial intelligence, AR (augmented reality, augmented reality), and VR (virtual reality, virtual reality). Under this technical background, the Web front-end industry has also undergone tremendous changes. Front-end programmers have developed from simple image cutting processing to need to handle various back-end businesses. Among them, Node.js is a powerful tool to connect the front end and the back end.
To be precise, Node.js is an operating environment specially created for front-end engineers, which can turn JavaScript into a back-end language and realize back-end interface development. Therefore, Node.js can allow front-end engineers to turn around and step into the ranks of full-stack engineers, with more technical advantages.
The content of this book
The content of this book is divided into 4 parts, which systematically explain the basic knowledge, framework and advanced content of Node.js, and give an enterprise project practice at the same time. The specific structure is divided as follows.
The first part is the introduction to the basics of Node.js, including chapters 1 to 3, mainly explaining the core API of Node.js, mastering the use of core modules, custom modules, and third-party modules, and realizing the creation of servers.
The second part is the Node.js framework, including chapters 4 to 7, mainly explaining the current popular Express framework and MySQL database, Web development mode and authentication corresponding to different development modes, and realizing the development of interface API. Mastering the knowledge in this chapter marks that readers can officially enter the ranks of full-stack engineers.
The third part is Node.js advanced, including chapters 8-12, mainly explaining the use of event loops, advanced frameworks, and advanced modules. Readers can freely experience the fun brought by new technologies, such as developing a crawler program by themselves.
The fourth part is enterprise project practice, including Chapter 13, which mainly explains the development of news management system API, so that readers can master the development skills of project practice.
Features of this book
(1) Concise and easy to learn, easy to get started
The language of this book is easy to understand, the knowledge explanation is concise and clear, pointing directly to the core, and there are few redundant and useless words; at the same time, the combination of theory and cases enables readers to quickly understand the essence of Node.js development.
(2) Strong practicability
This book is the dry sharing of the author's practical experience in Node.js for many years. Although there is a lot of knowledge, it is not straightforward. Which technical points can be used in actual work, and which skills can help readers save a lot of time and energy, all practical experience is reflected in the content design of this book. Therefore, the practicability of this book is extremely strong, and readers can master the most practical development skills in a short period of time if they study hard.
(3) Abundant cases
Almost every chapter of this book provides case demonstrations, and the operation steps are detailed. Readers can digest and understand the knowledge points learned more effectively while learning by doing. As long as you can independently complete the cases in the book, you can reach the professional level of Node.js development.
(4) Video Explanation
Almost every chapter of this book provides detailed synchronous teaching videos. Following the video learning, not only can you see the operation process more clearly, but also you can quickly cut into the topic and improve learning efficiency.
Supporting learning resources
For the convenience of readers to get started quickly, this book is equipped with learning resources such as source code, courseware, and videos. Readers can scan the QR code in the book to learn and download. The specific resources are as follows: the source code of the whole book case, the source code of the actual project, the synchronous teaching video, and the teaching courseware PPT.
At the same time, Node.js technology changes rapidly, and the author will release some new videos from time to time, such as introducing new technical frameworks and new version knowledge. The content of this part will continue to be updated. Readers can scan the QR code in the book to follow, understand, and continuously improve themselves.
Target Readers
This book is suitable for web design and production personnel, website construction developers, students of related majors in colleges and universities, back-end engineers, and personal web development enthusiasts.
This book has undergone many times of proofreading and verification in the process of writing, and strives to reduce errors and make it perfect. However, due to the limited level of the author, there are inevitably omissions in the book. Readers are welcome to criticize and correct.
No matter how the technology changes in the future, I hope that readers can step by step and move towards the desired result in their hearts. I wish you all a happy study!

Table of contents

第1章 Node.js 基础入门 1

1.1 回顾浏览器中的JavaScript 1

1.2 Node.js 简介 2

1.2.1 什么是Node.js 2

1.2.2 详解Node.js 运行环境 2

1.3 安装Node.js 运行环境 3

1.3.1 选择Node.js 版本 3

1.3.2 查看Node.js 版本号 3

1.4 在Node.js 中执行JavaScript 文件 4

1.5 Node.js 内置模块 5

1.5.1 fs 模块 5

1.5.2 path 模块 7

1.5.3 http 模块 10

1.5.4 http 模块综合案例 13

1.6 渲染数据列表 14

1.7 响应静态资源 16

第2章 Node.js 自定义模块 19

2.1 创建自定义模块 19

2.2 共享自定义模块的属性和方法 20

2.2.1 module 对象 20

2.2.2 自定义模块共享成员的注意事项 21

2.2.3 exports 对象 22

2.2.4 CommonJS 规范 25

第3章 Node.js 第三方模块 26

3.1 什么是包 26

3.2 npm 简介 26

3.2.1 nodemon 工具 27

3.2.2 第三方模块moment 28

3.2.3 第三方模块目录结构 29

3.2.4 包的分类 31

3.3 切换模块下载服务器 31

3.3.1 切换至淘宝镜像服务器 31

3.3.2 nrm 工具的使用 32

3.4 发布自定义模块包 33

3.4.1 包的结构规范 33

3.4.2 定义格式化日期模块 33

3.4.3 发布包 36

3.4.4 删除自定义模块包 38

第4章 Express 框架 39

4.1 什么是Express 39

4.1.1 Express 框架的基本使用 39

4.1.2 获取URL 参数 42

4.2 使用express.static()托管静态资源 43

4.3 Express 路由 45

4.3.1 路由的基本使用 45

4.3.2 模块化路由 46

4.4 Express 中间件 48

4.4.1 什么是中间件 48

4.4.2 定义Express 中间件 48

4.4.3 中间件的作用 50

4.4.4 定义多个全局中间件 51

4.4.5 局部中间件 52

4.4.6 中间件分类 54

4.5 使用Express 框架写接口 60

4.5.1 定义GET 请求接口 60

4.5.2 定义POST 请求接口 62

4.5.3 接口跨域 63

4.5.4 定义JSONP 接口 64

第5章 MySQL 数据库 66

5.1 什么是MySQL 数据库 66

5.2 Navicat 可视化管理工具 67

5.2.1 安装Navicat 可视化管理工具 67

5.2.2 使用Navicat 管理MySQL 数据库 68

5.2.3 创建数据表 69

5.3 使用SQL 语句管理数据库 70

5.3.1 SELECT 查询语句 70

5.3.2 INSERT INTO 插入语句 71

5.3.3 UPDATE 更新语句 72

5.3.4 DELETE 删除语句 73

5.3.5 WHERE 子句 73

5.3.6 AND 和OR 运算符 74

5.3.7 ORDER BY 子句 75

5.3.8 COUNT(*)函数 77

第6章 Express 框架操作MySQL 数据库 78

6.1 安装mysql 第三方模块 78

6.1.1 安装mysql 模块 78

6.1.2 执行SQL 语句 79

6.2 操作数据库 79

6.2.1 新增数据 80

6.2.2 更新数据 81

6.2.3 删除数据 83

第7章 Express 框架身份认证 84

7.1 Web 开发模式 84

7.2 身份认证分类 85

7.2.1 Session 认证机制 85

7.2.2 服务器端Session 认证 86

7.2.3 服务器端安装express-session 中间件 87

7.3 JWT 认证 89

7.3.1 什么是JWT 认证 89

7.3.2 在Express 项目中使用JWT 认证 90

第8章 Node.js 事件循环 93

8.1 浏览器中的事件循环 93

8.2 宏任务与微任务 96

8.3 多层嵌套promise 事件循环案例 97

8.4 混合嵌套事件循环案例 100

8.5 Node.js 事件循环 102

8.6 Node.js 事件循环案例 103

第9章 Koa 框架 106

9.1 安装Koa 框架 106

9.2 详解context 对象 107

9.2.1 context.request 属性 107

9.2.2 context.response 属性 108

9.3 加载HTML 文件 109

9.4 路由 110

9.5 模块化路由 112

9.6 URL 请求参数 114

9.7 koa-bodyparser 模块的使用 116

9.8 托管静态资源 118

9.9 异步处理 120

9.9.1 同步中间件执行顺序 120

9.9.2 异步中间件 121

9.10 错误类型中间件 123

9.11 接口跨域 126

9.12 身份认证 127

9.12.1 koa-session 认证 127

9.12.2 从Session 中读取数据 129

9.12.3 JWT 认证 130

9.12.4 测试JWT 认证 133

9.13 在Koa 中操作MySQL 134

9.14 Koa 框架项目实践 135

9.14.1 初始化项目 136

9.14.2 配置常用中间件 136

9.14.3 初始化路由模块 137

9.14.4 安装mysql 模块 139

9.14.5 实现注册API 接口 140

9.14.6 登录API 接口 144

9.14.7 Token 解密 147

9.15 模板引擎 148

第10章 socket.io 聊天室案例 151

10.1 什么是socket.io 151

10.1.1 项目初始化 152

10.1.2 登录聊天室 154

10.2 配置socket.io 155

10.2.1 配置服务器端 156

10.2.2 配置客户端 156

10.3 实现实时聊天 157

10.4 模拟Session 显示用户名 159

10.5 显示聊天室在线人数 162

10.6 私聊 164

10.7 群组聊天 166

第11章 网络爬虫 169

11.1 什么是爬虫 169

11.2 第一个爬虫程序 169

11.3 爬取前后端分离的网页内容 173

11.4 Selenium 简介 177

11.5 自动搜索 178

11.6 使用Selenium 实现爬虫功能 179

第12章 GraphQL 基础语法 184

12.1 什么是GraphQL 184

12.2 GraphQL 快速体验 184

12.3 GraphQL 服务器端代码解析 186

12.4 定义对象数据类型 188

12.5 参数传递 189

12.6 标量类型 191

12.7 枚举类型 192

12.8 input 输入类型 193

12.9 回调函数参数详解 195

第13章 新闻管理系统 199

13.1 初始化项目 199

13.2 配置常用中间件 200

13.3 创建路由模块 200

13.3.1 初始化路由模块 201

13.3.2 抽离路由模块事件处理函数 201

13.4 创建db_users 表 202

13.5 安装mysql 模块 203

13.6 注册API 接口 204

13.7 使用@escook/express-joi 中间件验证表单数据 208

13.8 登录API 接口 211

13.9 Token 解密 216

13.10 个人中心管理 217

13.10.1 获取当前用户的API 接口 218

13.10.2 更新用户信息的API 接口 221

13.10.3 重置密码的API 接口 224

13.10.4 更新用户头像的API 接口 229

13.11 新闻文章分类管理 232

13.11.1 新建db_article_nav 数据表 233

13.11.2 获取新闻文章分类的API 接口 233

13.11.3 新增新闻文章分类的API 接口 236

13.11.4 删除新闻文章分类的API 接口 241

13.11.5 根据id 获取新闻文章分类 245

13.11.6 根据id 更新新闻文章分类 248

13.12 新闻文章管理 253

13.12.1 新建db_article 数据表 253

13.12.2 发布新闻文章的API 接口 254

13.12.3 获取新闻文章列表的API 接口 260

13.12.4 根据id 删除新闻 264

13.12.5 根据id 获取新闻文章详情 267

Editor's Choice

"Node.js From Basics to Project Practice (Video Teaching Edition)" explains Node.js foundation, framework, advanced knowledge and project practice in the form of combining theory with practice. This book aims to help readers easily and thoroughly master Node.js technology, understand the essence of Node.js development, quickly upgrade to the professional level of Node.js development, and truly enter the ranks of full-stack engineers. This book has the following characteristics.
(1) Video explanation, easy to get started. This book is accompanied by corresponding video explanations, through which you can quickly cut into the topic and improve learning efficiency.
(2) Abundant cases. Almost every chapter of this book provides case demonstrations with detailed operation steps. Readers can digest and understand what they have learned more effectively while learning by doing.
(3) Apply what you have learned and be practical. If you study hard, you can master the most practical development skills in a short period of time.
(4) Abundant supporting learning service resources. For the convenience of getting started quickly, this book is equipped with learning resources such as source code, courseware, and videos. Readers can scan the QR code in the book to learn and download.

Guess you like

Origin blog.csdn.net/m0_64122244/article/details/130024048