当前位置:网站首页>Project Background Technology Express
Project Background Technology Express
2022-08-02 02:01:00 【matcha life】
Introduce three aspects:
One, the installation and use of Express;
Second, the routing definition of the Express project;
Three, the static resource management of Express project;
One, the installation and use of Express
Express Application Builder
1. Quickly create an application framework
npm install express-generator -g

After creating, you can use express -h to view the common commands of express
2. Create a new express application and build an Express server application that does not include template display function
express --no-view myapp


3. Install dependencies according to the command prompt
Second, the routing provided by Express
Express provides routes. By defining routes, you can design different URI addresses and support various HTTP methods (including GET, POST and other request methods)

An error is encountered here is that the routing request cannot be get
Install Mongodb
npm install mongoose -save
Add the following file in app.js 
Start myapp
set DEBUG=myapp * & npm start

边栏推荐
- 3个月测试员自述:4个影响我职业生涯的重要技能
- typescript34-class的基本使用
- Huawei's 5-year female test engineer resigns: what a painful realization...
- Speed up your programs with bitwise operations
- Understand the big model in seconds | 3 steps to get AI to write a summary
- LeetCode刷题日记:34、 在排序数组中查找元素的第一个和最后一个位置
- 力扣 1374. 生成每种字符都是奇数个的字符串
- PHP 使用 PHPRedis 与 Predis
- 【轮式里程计】
- "NetEase Internship" Weekly Diary (2)
猜你喜欢
![[ORB_SLAM2] void Frame::ComputeImageBounds(const cv::Mat & imLeft)](/img/ed/ffced88c9d23c20ccf380494051381.jpg)
[ORB_SLAM2] void Frame::ComputeImageBounds(const cv::Mat & imLeft)

"NetEase Internship" Weekly Diary (2)

Byte taught me a hard lesson: When a crisis comes, you don't even have time to prepare...

【LeetCode每日一题】——704.二分查找

Record the pits where an error occurs when an array is converted to a collection, and try to use an array of packaging types for conversion

【ORB_SLAM2】void Frame::ComputeImageBounds(const cv::Mat &imLeft)

AOF重写

Hiring a WordPress Developer: 4 Practical Ways

YGG 公会发展计划第 1 季总结

第一次写对牛客的编程面试题:输入一个字符串,返回该字符串出现最多的字母
随机推荐
【ORB_SLAM2】void Frame::AssignFeaturesToGrid()
PHP 使用 PHPRedis 与 Predis
Constructor instance method inheritance of typescript37-class (extends)
typeof in typescript32-ts
The ultra-large-scale industrial practical semantic segmentation dataset PSSL and pre-training model are open source!
【LeetCode每日一题】——704.二分查找
哈希表
检查IP或端口是否被封
Handwriting a blogging platform ~ the first day
【轮式里程计】
Byte taught me a hard lesson: When a crisis comes, you don't even have time to prepare...
『网易实习』周记(三)
oracle query scan full table and walk index
LeetCode Brushing Diary: 74. Searching 2D Matrix
字节给我狠狠上了一课:危机来的时候你连准备时间都没有...
typescript37-class的构造函数实例方法继承(extends)
Redis 底层的数据结构
超大规模的产业实用语义分割数据集PSSL与预训练模型开源啦!
Data transfer at the data link layer
Analysis of volatile principle