当前位置:网站首页>1-12 初步认识Express
1-12 初步认识Express
2022-06-30 21:26:00 【画不完的饼】
Express
Express是基于 Node.js 平台,快速、开放、极简的 Web 开发框架。
常见的两种服务器:
**web网站服务器:**专门对外提供Web网页资源的服务器。
**API接口服务器:**专门对外提供API接口的服务器。
使用Express,我们可以方便、快速的创建Web网站的服务器或API接口的服务器
Express的安装
npm i [email protected]
创建基本的web服务器
//导入express
const express = require('express')
//创建web服务器
const app = express()
//启动web服务器
app.listen(80,()=>{
console.log('sever')
})
边栏推荐
猜你喜欢

科研中遇到迷茫困惑如何向前一步?如何在科研中发挥女性优势?
![[untitled]](/img/42/47a8c8faaed33a1d9e864cb2ef7b72.png)
[untitled]

pytorch geometric torch-scatter和torch-sparse安装报错问题解决
笔记【JUC包以及Future介绍】

asp.net core JWT传递

《ClickHouse原理解析与应用实践》读书笔记(3)

MySQL advanced 3

兴奋神经递质——谷氨酸与大脑健康

Apply for vector bus protocol color picture wallpaper hanging picture, very good!

Radar data processing technology
随机推荐
给苏丹国安德森苏丹的撒过 d s g
Prediction and regression of stacking integrated model
《ClickHouse原理解析与应用实践》读书笔记(2)
MySQL batch update
凤凰架构——架构师的视角
元宇宙可能成为互联网发展的新方向
一文读懂什么是MySQL索引下推(ICP)
ArcGIS construction and release of simple road network data service and rest call test
Digital currency: far-reaching innovation
你我他是谁
攻防演练中的防泄露全家福
stacking集成模型预测回归问题
激发新动能 多地发力数字经济
MySQL advanced 3
等级测评是什么意思?工作流程包含哪些?
FreeRTOS record (IX. an example of a bare metal project transferring to FreeRTOS)
12345
笔记【JUC包以及Future介绍】
How to move forward when facing confusion in scientific research? How to give full play to women's advantages in scientific research?
[untitled]