【文件属性】:
文件名称:api:EESAST的API后端
文件大小:127KB
文件格式:ZIP
更新时间:2021-03-21 00:48:56
express typescript mongodb eesast TypeScript
EESAST API
EESAST最低API
功能
用户验证
静态文件权限管理
其余逻辑均使用
API接口
查看
开发
环境
节点14 / npm
纱
打字稿
MongoDB的
工具
VSCode扩展
更漂亮
ESLint
MongoDB罗盘社区
邮差
脚本
yarn install
安装所有dependencies和devDependencies
yarn start
启动开发服务器,自动监听源文件更改(数据库需要自行启动)
yarn debug
配合VSCode调试服务器。操作方式如下:
设置断点;
按F5,或在调试窗口中单击绿色箭头。
yarn build
使用babel编译源文件
yarn serve
在yarn build生成的build文件夹中运行,启动生产环境服务器
yarn lint
使用ESLint进行代码风格检查
yarn typecheck
检查类型错误
【文件预览】:
api-master
----.gitignore(1KB)
----.babelrc(375B)
----Dockerfile(590B)
----.eslintrc(683B)
----package.json(3KB)
----src()
--------@types()
--------models()
--------helpers()
--------configs()
--------index.ts(2KB)
--------middlewares()
--------app.ts(886B)
--------routes()
----LICENSE(1KB)
----.mergify.yml(667B)
----tsconfig.json(376B)
----.github()
--------workflows()
----scripts()
--------deploy.sh(144B)
----README.md(1KB)
----.vscode()
--------settings.json(166B)
--------launch.json(511B)
----renovate.json(236B)
----yarn.lock(259KB)