🍺Web服务器系列相关文章编写如下🍺:
- 🎈【Web开发】Node.js实现Web服务器(http模块)🎈
- 🎈【Web开发】Node.js实现Web服务器(express模块)🎈
- 🎈【Web开发】Python实现Web服务器(Flask入门)🎈
- 🎈【Web开发】Python实现Web服务器(Flask测试)🎈
- 🎈【Web开发】Python实现Web服务器(Tornado入门)🎈
- 🎈【Web开发】Python实现Web服务器(Tornado+flask+nginx)🎈
- 🎈【Web开发】Python实现Web服务器(FastAPI)🎈
- 🎈【Web开发】Android手机上基于Termux实现Web服务器(Python、node.js)🎈
文章目录
- 1、简介
- 后记
1、简介
1.1 node.js
官网地址:https://nodejs.org/
Node.js 是一个开源和跨平台的 JavaScript 运行时环境。它是几乎任何类型的项目的流行工具!
 Node.js 在浏览器之外运行 Google Chrome 的核心 V8 JavaScript 引擎。这使得 Node.js 非常高效。

1.2 express
官网地址:https://www.npmjs.com/package/express Fast, unopinionated, minimalist web framework for node.

2、安装express库

3、代码示例
3.1 官方示例1


3.2 官方示例2
Install the executable. The executable’s major version will match Express’s:

 Create the app:

 Install dependencies:

 Start the server:

 View the website at: http://localhost:3000

3.3 官方示例3
为了解决fatal: remote error: The unauthenticated git protocol on port 9418 is no longer support。执行如下代码:
To view the examples, clone the Express repo and install the dependencies:


 Then run whichever example you want:


后记
如果你觉得该方法或代码有一点点用处,可以给作者点个赞、;╮( ̄▽ ̄)╭
如果你感觉方法或代码不咋地//(ㄒoㄒ)//,就在评论处留言,作者继续改进。o_O???
谢谢各位童鞋们啦( ´ ▽´ )ノ ( ´ ▽´)っ!!!
                
 
 
                     
            
        













 
                    

 
                 
                    