当前位置:网站首页>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
边栏推荐
- YGG Guild Development Plan Season 1 Summary
- 字节给我狠狠上了一课:危机来的时候你连准备时间都没有...
- 2023年起,这些地区软考成绩低于45分也能拿证
- Redis 持久化 - RDB 与 AOF
- 【ORB_SLAM2】SetPose、UpdatePoseMatrices
- After graduating from three books, I was rejected by Tencent 14 times, and finally successfully joined Alibaba
- MySQL optimization strategy
- 待读书单列表
- 编码经验之谈
- 飞桨开源社区季度报告来啦,你想知道的都在这里
猜你喜欢
随机推荐
LeetCode brush diary: LCP 03. Machine's adventure
oracle查询扫描全表和走索引
手写一个博客平台~第三天
typescript33 - high-level overview of typescript
The Paddle Open Source Community Quarterly Report is here, everything you want to know is here
Day116.尚医通:预约挂号详情 ※
Pcie the inbound and outbound
Constructor instance method of typescript36-class
PHP 使用 PHPRedis 与 Predis
Win Go开发包安装配置、GoLand配置
6-24漏洞利用-vnc密码破解
LeetCode刷题日记:53、最大子数组和
LeetCode Brushing Diary: 74. Searching 2D Matrix
密码学的基础:X.690和对应的BER CER DER编码
Named parameter implementation of JDBC PreparedStatement
C language inserted into the characters of simple exercises
力扣 1374. 生成每种字符都是奇数个的字符串
Effects of Scraping and Aggregation
LeetCode刷题日记: 33、搜索旋转排序数组
Handwritten Blog Platform ~ Day Two