当前位置:网站首页>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
边栏推荐
- Newton's theorem and related corollaries
- 飞桨开源社区季度报告来啦,你想知道的都在这里
- AntPathMatcher使用
- 云和恩墨:让商业数据库时代的价值在openGauss生态上持续繁荣
- Local storage in Kubernetes
- LeetCode brushing diary: 53, the largest sub-array and
- bool Frame::PosInGrid(const cv::KeyPoint &kp, int &posX, int &posY)
- Entry name ‘org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt’ collided
- 第一次写对牛客的编程面试题:输入一个字符串,返回该字符串出现最多的字母
- [LeetCode Daily Question]——654. The largest binary tree
猜你喜欢
制造企业数字化转型现状分析
typescript29-枚举类型的特点和原理
LeetCode Brushing Diary: 74. Searching 2D Matrix
MySQL optimization strategy
三本毕业的我被腾讯拒绝了十四次,最终成功入职阿里
Use baidu EasyDL implement factory workers smoking behavior recognition
飞桨助力航天宏图PIE-Engine地球科学引擎构建
字节给我狠狠上了一课:危机来的时候你连准备时间都没有...
手写一个博客平台~第三天
Day115. Shangyitong: Background user management: user lock and unlock, details, authentication list approval
随机推荐
Rust P2P Network Application Combat-1 P2P Network Core Concepts and Ping Program
C语言之插入字符简单练习
Redis 持久化 - RDB 与 AOF
oracle查询扫描全表和走索引
使用百度EasyDL实现厂区工人抽烟行为识别
LeetCode刷题日记:153、寻找旋转排序数组中的最小值
typescript30-any类型
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
[LeetCode Daily Question]——654. The largest binary tree
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
Newton's theorem and related corollaries
MySQL——增删查改操作
牛顿定理和相关推论
PHP uses PHPRedis and Predis
Redis 底层的数据结构
6-24 exploit-vnc password cracking
制造企业数字化转型现状分析
字节给我狠狠上了一课:危机来的时候你连准备时间都没有...
Anti-oversold and high concurrent deduction scheme for e-commerce inventory system
The characteristics and principle of typescript29 - enumeration type