https://github.com/sake92/sharaf-api-starter
API starter project for Sharaf
https://github.com/sake92/sharaf-api-starter
api-first generator openapi scala
Last synced: 8 days ago
JSON representation
API starter project for Sharaf
- Host: GitHub
- URL: https://github.com/sake92/sharaf-api-starter
- Owner: sake92
- License: apache-2.0
- Created: 2025-07-14T18:16:13.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-26T13:36:34.000Z (8 months ago)
- Last Synced: 2025-10-11T10:58:16.933Z (8 months ago)
- Topics: api-first, generator, openapi, scala
- Language: Scala
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sharaf-api-starter
This is an api starter project for [Sharaf](https://github.com/sake92/sharaf) that leverages:
- [openapi4s](https://github.com/sake92/openapi4s) for spec-first autogenerated API dev
- [squery](https://github.com/sake92/squery) for db access, with autogenerated db models+DAOs
Openapi and db schema are taken from https://github.com/spring-petclinic/spring-petclinic-rest .
```shell
# creates db and populates it with some data
./mill api.flywayMigrate
# generate db boilerplate source code
./mill api.squeryGenerate
# generate api boilerplate source code
./mill api.openApi4sGenerate
# format source code
./mill mill.scalalib.scalafmt/
```