当前位置:网站首页>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

边栏推荐
猜你喜欢

Handwriting a blogging platform ~ Day 3

字节给我狠狠上了一课:危机来的时候你连准备时间都没有...

项目后台技术Express

ofstream,ifstream,fstream读写文件

Day115.尚医通:后台用户管理:用户锁定解锁、详情、认证列表审批

3个月测试员自述:4个影响我职业生涯的重要技能

Entry name ‘org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt’ collided

用位运算为你的程序加速

Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021: Interpretation

Constructor instance method of typescript36-class
随机推荐
项目后台技术Express
数据链路层的数据传输
ofstream,ifstream,fstream读写文件
Handwriting a blogging platform ~ Day 3
Hash collisions and consistent hashing
LeetCode brushing diary: 53, the largest sub-array and
MySQL——增删查改操作
手写一个博客平台~第一天
Redis Subscription and Redis Stream
制造企业数字化转型现状分析
Byte taught me a hard lesson: When a crisis comes, you don't even have time to prepare...
Handwritten Blog Platform ~ Day Two
"Introduction to Natural Language Processing Practice" Question Answering Robot Based on Knowledge Graph
6-25 Vulnerability Exploitation - irc Backdoor Exploitation
Check if IP or port is blocked
typescript30 - any type
Handwriting a blogging platform ~ the first day
成都openGauss用户组招募啦!
使用百度EasyDL实现厂区工人抽烟行为识别
For effective automated testing, these software testing tools must be collected!!!