【文件属性】:
文件名称:gcp-cloud-function-typescript:gcp-cloud-function-typescript-example
文件大小:135KB
文件格式:ZIP
更新时间:2021-03-05 12:26:45
typescript jest example axios class-validator
GCP功能
环境变量
提供以下属性作为运行时process.env
秘密=
driverlicenceURL =
命令行示例:
```
export secret=
```
```
export driverlicenceURL=
```
如何运行服务?
克隆存储库。
安装依赖项。
使用NPM
npm install
或者,使用纱线
yarn
运行测试用例
使用NPM
npm test
或者,使用纱线
yarn test
运行服务
清洁和建造
使用NPM
npm clean
npm compile
或者,使用纱线
yarn clean
yarn compile
开始
使用NPM
npm start
或者,使用纱线
yarn start
棉绒错误
npm fix
yarn fix
使用CURL的测试服务
curl --location --request POST'ht
【文件预览】:
gcp-cloud-function-typescript-main
----.gitignore(19B)
----tsconfig.json(659B)
----README.md(2KB)
----test()
--------data()
----package.json(1KB)
----src()
--------enum()
--------doKyc.ts(2KB)
--------exception()
--------middleware()
--------dto()
--------index.spec.ts(4KB)
--------index.ts(1KB)
--------lib()
--------util()
----jest.config.js(203B)
----.eslintignore(7B)
----yarn.lock(229KB)
----.eslintrc.json(39B)
----.prettierrc.js(58B)
----package-lock.json(98KB)