
5

基于 NodeJs 的 live2d 后端 Api 服务器
source link: https://blog.hclonely.com/posts/f19bd1b6/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

基于 NodeJs 的 live2d 后端 Api 服务器
- 博主:HCLonely
- 发布时间:2021-01-27
- 54348 次浏览
- 382 字数
- 分类:JavaScript NodeJs
适用于live2d.user.js,live2d_demo的基于 Nodejs 的后端 Api.
- 安装NodeJs,Git
- 克隆本项目
git clone https://github.com/HCLonely/live2dNodeApi.git
- 定位到项目目录
cd live2dNodeApi
- 安装依赖
npm i -S
或cnpm i -S
- 启动服务器
npm start
命令 | 功能 | 额外说明 |
---|---|---|
npm start | 启动 api 服务器 | |
npm run update | 重新生成modelList.json 文件 | 用于增加或删除模型后更新模型列表 |
npm run check | 检测模型的主配置文件格式及模型文件的完整性 | |
npm run screenshot | 生成模型的预览图,放在preview 文件夹 | |
npm run pre | 在网页上查看模型的预览图,需要先生成 |
修改config.json
文件进行配置:
模型目录结构
Shell
详情请参考models目录
依赖安装慢
更新模型后顺序乱了
请重命名模型文件夹进行排序,参考models目录。
最后修改:2022-03-03 19:11:25
如果觉得我的文章对你有用,请随意赞赏
来发评论吧~
Powered By Valine
v1.4.16
v1.4.16
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK