Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 397 Bytes

File metadata and controls

23 lines (19 loc) · 397 Bytes

Node项目基础搭建模板

安装

npm install

启动

# 启动项目
npm run dev

# 或者 持续监听
npm run start

静态文件

node程序所有静态文件或者资源都和请求一样,需要根据路由进行读取才能访问。

部署

把项目传到服务器,然后执行启动命令 npm run dev
也可以在服务器使用pm2启动node程序