Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 971 Bytes

development.md

File metadata and controls

73 lines (47 loc) · 971 Bytes

开发 vtbs.moe

前置要求

  • node 版本最新, 推荐 18

Windows 可能需要先安装 win-node-env

npm install -g win-node-env

安装依赖:

git submodule update --init --recursive
npm install

前端

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Customize configuration

See Configuration Reference.

后端API

编译Typescript (Watch)

npm run dev

编译Typescript

npm run tsc

运行 (MOCK)

node api/mock

会自动mock以下repo:

运行

node index.cjs
  • Socket 服务端口: 8001

其他

  • 把数据库导出为 json 文件: node script/db2json