Breeze

Breeze CI codecov

security status stability status licensing status

Breeze

一个用于服务端 Swift 的 Serverless API 模板生成器。

摘要

Breeze 是一个强大的工具,旨在简化在 Swift 中创建 Serverless API 模板的过程。

它消除了从零开始设置项目的复杂性,为开发者提供了可适配和定制的代码、脚本和配置。该工具基于开源代码,允许任何人检查、理解和改进实现。

Breeze 的基本选择

为何选择 Serverless?

Serverless 架构彻底改变了开发者处理应用部署的方式。Serverless 计算消除了与传统服务器管理相关的复杂性。这种方法带来了更高的敏捷性、更低的运营开销、可扩展性和高效的资源利用率。

为何选择 Swift?

Swift 简洁的语法、强大的类型系统和性能优化有助于更快的开发周期和增强的代码可维护性。在服务端利用 Swift 确保了开发者获得一致且统一的语言体验,促进了客户端和服务器组件之间的代码共享。

Breeze Swift 模板

该工具可以生成以下可用模板

Serverless REST API

基于 APIGateway、Lambda、DynamoDB 的 AWS Serverless REST API

AWS Serverless Rest API

GitHub Webhook

一个基于 APIGateway 和 Lambda 的,带有签名验证的 GitHub Webhook。

AWS Serverless GitHub Webhook

GET/POST Webhook

一个基于 APIGateway 和 Lambda 的 Serveless Webhook,带有 POST 和 GET 端点。

AWS Serverless Webhook

用法

swift run breeze --help

输出

OVERVIEW: Breeze command line

Generate the deployment of a Serverless project using Breeze.
The command generates of the swift package, the `serverless.yml` file and the relevant commands in the target path to deploy
the Lambda code on AWS using the Serverless Framework.

USAGE: breeze <subcommand>

OPTIONS:
  -h, --help              Show help information.

SUBCOMMANDS:
  generate-lambda-api
  generate-github-webhook
  generate-webhook

  See 'breeze help <subcommand>' for detailed help.

开发工作流

使用 Breeze 开发 Serverless Swift 的工作流可以通过以下步骤描述

需求和工具

贡献

欢迎贡献!如果您遇到任何问题或有改进的想法,请开启 issue 或提交 pull request。