当前位置:网站首页>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')
})
边栏推荐
猜你喜欢

Five years after graduation, I wondered if I would still be so anxious if I hadn't taken the test

网络营销之四大误解

SQL server extracts pure numbers from strings

Et la dégradation du modèle de génération de texte? Simctg vous donne la réponse

Why have the intelligent investment advisory products collectively taken off the shelves of banks become "chicken ribs"?

Icml2022 | utility theory of sequential decision making

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

根据肠道微生物组重新思考健康饮食

stacking集成模型预测回归问题

布隆过滤器
随机推荐
How to run jenkins build, in multiple servers with ssh-key
Upgrade Kube with unknown flag: --network plugin
Markdown笔记简明教程
twelve thousand three hundred and forty-five
k个一组反转链表
个人开发的渗透测试工具Satania
CA I ah, several times Oh, ah, a sentence IU home Oh
加密与解密以及OpenSSL的应用
What does grade evaluation mean? What is included in the workflow?
银行集体下架的智能投顾产品,为何成了“鸡肋”?
The 16th Heilongjiang Provincial Collegiate Programming Contest
Understanding polymorphism
侧睡哈哈哈哈
Go build server Foundation
Can flinksql two Kafka streams join?
oprator-1初识oprator
3Ds Max 精模obj模型导入ArcGIS Pro (二)要点补充
A group of K inverted linked lists
Radar data processing technology
Reading notes of Clickhouse principle analysis and Application Practice (1)