Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ryoppippi/openapi-with-hono-and-swift
- Owner: ryoppippi
- License: mit
- Created: 2023-08-25T20:17:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-25T11:41:08.000Z (4 months ago)
- Last Synced: 2024-10-25T10:36:51.642Z (about 2 months ago)
- Topics: honojs, openapi, swift, swiftui, typescipt
- Language: Swift
- Homepage:
- Size: 87.9 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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