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

边栏推荐
- Entry name ‘org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt’ collided
- 一本适合职场新人的好书
- 秒懂大模型 | 3步搞定AI写摘要
- Redis Subscription and Redis Stream
- HSDC和独立生成树相关
- 第一次写对牛客的编程面试题:输入一个字符串,返回该字符串出现最多的字母
- Fly propeller power space future PIE - Engine Engine build earth science
- Redis Persistence - RDB and AOF
- Rust P2P Network Application Combat-1 P2P Network Core Concepts and Ping Program
- Named parameter implementation of JDBC PreparedStatement
猜你喜欢

typeof in typescript32-ts

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

MySQL8 下载、启动、配置、验证

Golang分布式应用之定时任务

Some insights from 5 years of automated testing experience: UI automation must overcome these 10 pits

oracle查询扫描全表和走索引

Speed up your programs with bitwise operations

【刷题篇】打家劫舍

6-25 Vulnerability Exploitation - irc Backdoor Exploitation

三本毕业的我被腾讯拒绝了十四次,最终成功入职阿里
随机推荐
LeetCode刷题日记:LCP 03.机器人大冒险
Redis 订阅与 Redis Stream
typeof in typescript32-ts
Constructor instance method of typescript36-class
typescript33 - high-level overview of typescript
3. Bean scope and life cycle
YGG Guild Development Plan Season 1 Summary
【Brush the title】Family robbery
C language inserted into the characters of simple exercises
Handwriting a blogging platform ~ Day 3
软件测试 接口自动化测试 pytest框架封装 requests库 封装统一请求和多个基础路径处理 接口关联封装 测试用例写在yaml文件中 数据热加载(动态参数) 断言
CodeTon Round 2 D. Magical Array 规律
雇用WordPress开发人员:4个实用的方法
Kubernetes之本地存储
Analysis of volatile principle
个人博客系统项目测试
HSDC is related to Independent Spanning Tree
Named parameter implementation of JDBC PreparedStatement
LeetCode Review Diary: 153. Find the Minimum Value in a Rotated Sort Array
字节给我狠狠上了一课:危机来的时候你连准备时间都没有...