typescript-serverless-api-vercel:在Vercel平台上托管无服务器API的项目

时间:2021-04-20 03:08:42
【文件属性】:
文件名称:typescript-serverless-api-vercel:在Vercel平台上托管无服务器API的项目
文件大小:125KB
文件格式:ZIP
更新时间:2021-04-20 03:08:42
TypeScript Vercel上的TypeScript无服务器API 该目录是在TypeScript中创建无服务器API并在Vercel平台上进行部署的示例。 特征 用TypeScript编写的无服务器功能 在Vercel上针对主分支和请求请求进行部署 使用Jest测试支持 使用GitHub Actions进行CI设置,以在每次推送到GitHub时(在每个分支上)运行测试 CI设置以针对Vercel预览URL运行测试,并在PR合并之前将其添加为检查对象。 CI Setup使用semantic-release来创建新semantic-release 能够计算函数( /address )以及进行API调用( /currency ) 可用的API 当地的 http://localhost:3000/api/hello ? name= < string> http://localhost:3000
【文件预览】:
typescript-serverless-api-vercel-main
----api()
--------address.ts(660B)
--------hello.ts(228B)
--------currency.ts(298B)
----.gitignore(89B)
----package.json(923B)
----src()
--------currencyFetcher.ts(383B)
--------integration_tests()
--------addressGenerator.test.ts(253B)
--------addressGenerator.ts(1KB)
--------currencyFetcher.test.ts(523B)
--------constants.ts(119B)
----public()
--------index.html(27B)
----tsconfig.json(59B)
----.github()
--------workflows()
----.prettierignore(14B)
----README.md(2KB)
----babel.config.js(140B)
----.vercelignore(10B)
----.npmignore(45B)
----yarn.lock(300KB)

网友评论