当前位置:网站首页>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
边栏推荐
- Opencv learning example code 3.2.3 image binarization
- 968 edit distance
- 20220211 failure - maximum amount of data supported by mongodb
- document.write()的用法-写入文本——修改样式、位置控制
- Deployment of external server area and dual machine hot standby of firewall Foundation
- ICML 2022 | flowformer: task generic linear complexity transformer
- Introduction to the use of SAP Fiori application index tool and SAP Fiori tools
- 全网最全的知识库管理工具综合评测和推荐:FlowUs、Baklib、简道云、ONES Wiki 、PingCode、Seed、MeBox、亿方云、智米云、搜阅云、天翎
- Data Lake (VIII): Iceberg data storage format
- Kubernetes learning summary (20) -- what is the relationship between kubernetes and microservices and containers?
猜你喜欢
967- letter combination of telephone number
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
SAP Fiori应用索引大全工具和 SAP Fiori Tools 的使用介绍
Hardware development notes (10): basic process of hardware development, making a USB to RS232 module (9): create ch340g/max232 package library sop-16 and associate principle primitive devices
ICML 2022 | Flowformer: 任务通用的线性复杂度Transformer
强化学习-学习笔记5 | AlphaGo
MLP (multilayer perceptron neural network) is a multilayer fully connected neural network model.
每个程序员必须掌握的常用英语词汇(建议收藏)
No Yum source to install SPuG monitoring
2022 fields Award Announced! The first Korean Xu Long'er was on the list, and four post-80s women won the prize. Ukrainian female mathematicians became the only two women to win the prize in history
随机推荐
嵌入式开发的7大原罪
This year, Jianzhi Tencent
3D人脸重建:从基础知识到识别/重建方法!
Pycharm remote execution
What key progress has been made in deep learning in 2021?
SAP UI5 框架的 manifest.json
#yyds干货盘点#重新梳理箭头函数的this
Reference frame generation based on deep learning
1500萬員工輕松管理,雲原生數據庫GaussDB讓HR辦公更高效
【Redis设计与实现】第一部分 :Redis数据结构和对象 总结
动态切换数据源
字符串的使用方法之startwith()-以XX开头、endsWith()-以XX结尾、trim()-删除两端空格
Comprehensive evaluation and recommendation of the most comprehensive knowledge base management tools in the whole network: flowus, baklib, jiandaoyun, ones wiki, pingcode, seed, mebox, Yifang cloud,
华为设备命令
c#使用oracle存储过程获取结果集实例
Pat 1085 perfect sequence (25 points) perfect sequence
What is the difference between procedural SQL and C language in defining variables
Entity alignment two of knowledge map
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
Pinduoduo lost the lawsuit, and the case of bargain price difference of 0.9% was sentenced; Wechat internal test, the same mobile phone number can register two account functions; 2022 fields Awards an