当前位置:网站首页>Nodejs tutorial let's create your first expressjs application with typescript
Nodejs tutorial let's create your first expressjs application with typescript
2022-07-06 21:09:00 【Knowledge fatness】
Express.js What is it?
Express.js, Or abbreviation Express, yes Node.js Back end application framework , stay MIT Released as free and open source software under license . It is designed for building Web Applications and API And Design . It is called Node.js The de facto standard server framework .
Core library
- express — This is what we will use to build api Of Node.js modular
- body-parser — Node.js Text parsing Middleware
- cors — This is a node.js package , For providing Connect / Express middleware , Can be used to enable... With a variety of options CORS .
- helmet — helmet It's a Node.js package , It sets various http Headers to help you protect your fast applications
- morgan — morgan It's a Node.js package , It can help us know who is talking to us express Application request api
- nodemon — nodemon It's a tool , Help develop node applications based on node.js Applications for .
- ts-node — ts-node It's a TypeScript Execution engine and Node.js Of REPL.
- typescript
- @types/express、@types/body-parser、@types/cors、@types/helmet、@types/morgan、- @types/node—— This package contains type definitions
Installation environment
well , Let's start by installing all the necessary packages
npm install express body-parser cors helmet morgan
边栏推荐
- R language visualizes the relationship between more than two classification (category) variables, uses mosaic function in VCD package to create mosaic plots, and visualizes the relationship between tw
- What is the problem with the SQL group by statement
- el-table表格——sortable排序 & 出现小数、%时排序错乱
- C language games - minesweeping
- Reference frame generation based on deep learning
- [MySQL] basic use of cursor
- [MySQL] trigger
- 967- letter combination of telephone number
- How to implement common frameworks
- 2022菲尔兹奖揭晓!首位韩裔许埈珥上榜,四位80后得奖,乌克兰女数学家成史上唯二获奖女性
猜你喜欢
1_ Introduction to go language
监控界的最强王者,没有之一!
No Yum source to install SPuG monitoring
Reviewer dis's whole research direction is not just reviewing my manuscript. What should I do?
【OpenCV 例程200篇】220.对图像进行马赛克处理
【论文解读】用于白内障分级/分类的机器学习技术
Laravel笔记-自定义登录中新增登录5次失败锁账户功能(提高系统安全性)
for循环中break与continue的区别——break-完全结束循环 & continue-终止本次循环
ICML 2022 | flowformer: task generic linear complexity transformer
[200 opencv routines] 220 Mosaic the image
随机推荐
Aike AI frontier promotion (7.6)
Nodejs教程之让我们用 typescript 创建你的第一个 expressjs 应用程序
C language operators
防火墙基础之外网服务器区部署和双机热备
Intel 48 core new Xeon run point exposure: unexpected results against AMD zen3 in 3D cache
js中,字符串和数组互转(二)——数组转为字符串的方法
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
[MySQL] basic use of cursor
Data Lake (VIII): Iceberg data storage format
OAI 5g nr+usrp b210 installation and construction
PG基础篇--逻辑结构管理(事务)
#yyds干货盘点#重新梳理箭头函数的this
Introduction to the use of SAP Fiori application index tool and SAP Fiori tools
[wechat applet] operation mechanism and update mechanism
@GetMapping、@PostMapping 和 @RequestMapping详细区别附实战代码(全)
Common English vocabulary that every programmer must master (recommended Collection)
Database - how to get familiar with hundreds of tables of the project -navicat these unique skills, have you got it? (exclusive experience)
[MySQL] trigger
C # use Oracle stored procedure to obtain result set instance