Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryoppippi/openapi-with-hono-and-swift

openapi + hono + swift-openapi-generator
https://github.com/ryoppippi/openapi-with-hono-and-swift

honojs openapi swift swiftui typescipt

Last synced: about 2 months ago
JSON representation

openapi + hono + swift-openapi-generator

Awesome Lists containing this project

README

        

# OpenAPI + Hono + swift-openapi-generator Example

https://github.com/ryoppippi/openapi-with-hono-and-swift/assets/1560508/5c5889e5-4946-48da-a2a2-4cd584707667

- [hono](https://hono.dev/)
- [zod-openapi hono middleware](https://github.com/honojs/middleware/tree/main/packages/zod-openapi)
- [swift-openapi-generator](https://github.com/apple/swift-openapi-generator)

## Setup
```sh
make setup
```

## Generate Schema
```sh
cd backend
bun run generate
```
You can use watch build so that you will get a tRPC-like experience between Swift <- -> TypeScript.

```sh
cd backend
bun run generate --watch
```

## Run

### backend
```sh
cd backend
bun run dev
```

### ios
```sh
make open
```
Then, run on Xcode.

## Authors

- Ryotaro "Justin" Kimura http://github.com/ryoppippi

## License
MIT