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

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
zip
typescript-serverless-api-vercel-main.zip 预估大小:22个文件
folder
typescript-serverless-api-vercel-main 文件夹
folder
api 文件夹
file
address.ts 660B
file
hello.ts 228B
file
currency.ts 298B
file
.gitignore 89B
file
package.json 923B
folder
src 文件夹
file
currencyFetcher.ts 383B
folder
integration_tests 文件夹
file
hello.int.test.ts 581B
file
addressGenerator.test.ts 253B
file
addressGenerator.ts 1KB
file
currencyFetcher.test.ts 523B
file
constants.ts 119B
folder
public 文件夹
file
index.html 27B
file
tsconfig.json 59B
folder
.github 文件夹
folder
workflows 文件夹
file
release.yml 619B
file
ci.yml 641B
file
preview-ci.yml 2KB
file
.prettierignore 14B
file
README.md 2KB
file
babel.config.js 140B
file
.vercelignore 10B
file
.npmignore 45B
file
yarn.lock 300KB
zip 文件大小:125.28KB