【文件属性】:
文件名称:profile-service-nodejs-api:Profile Service Node.js版本
文件大小:91KB
文件格式:ZIP
更新时间:2021-04-23 20:14:27
TypeScript
Profile API服务
首先,克隆profile-api-service仓库
git clone https://github.com/tuum-tech/profile-api-service.git;
cd profile-api-service;
跑步
复制示例环境文件
cp .env.example .env
用您自己的值修改.env文件
安装依赖项
npm i
启动API服务器
npm start
核实
与Profile API交互
要检查API是否正常工作:
curl http://localhost:8082
POST API:
curl -XPOST -H "Authorization: profile-api-secret-key" -H "Content-Type: application/json" -H "Accept: application/json"
【文件预览】:
profile-service-nodejs-api-main
----src()
--------index.ts(3KB)
--------v1()
--------custom.typings.d.ts(51B)
--------tests()
----tsconfig.json(340B)
----LICENSE(34KB)
----tslint.json(210B)
----README.md(6KB)
----.gitignore(2KB)
----package-lock.json(138KB)
----package.json(2KB)