https://github.com/ffakenz/schema-validator
schema validator service
https://github.com/ffakenz/schema-validator
tapir zio2
Last synced: 8 months ago
JSON representation
schema validator service
- Host: GitHub
- URL: https://github.com/ffakenz/schema-validator
- Owner: ffakenz
- Created: 2022-10-12T22:40:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-17T23:08:21.000Z (over 3 years ago)
- Last Synced: 2024-04-23T05:26:16.624Z (about 2 years ago)
- Topics: tapir, zio2
- Language: Scala
- Homepage:
- Size: 81.1 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Schema Validator
[![ZIO][Badge-ZIO]][Link-Zio]
[![CI][Badge-CI]][Link-CI]
|Technology | Version |
|-------------|---------- |
|Scala | 2.13 |
|SBT | 1.7.1 |
|JAVA | 17 |
|ZIO | 2.0.2 |
### Repo setup
Something handy to have in your git hooks is the one in `./scripts/githooks/pre-commit`
which validates coding standards when trying to run a `git commit` command.
install pre-commit: https://pre-commit.com/
and launch:
```shell
$ cd scripts/githooks
$ pre-commit install
```
[Badge-ZIO]: https://img.shields.io/badge/zio-2.0-red
[Link-ZIO]: https://zio.dev/
[Badge-CI]: https://github.com/ffakenz/schema-validator/actions/workflows/ci.yml/badge.svg
[Link-CI]: https://github.com/ffakenz/schema-validator/actions/workflows/ci.yml
### Watch Mode
You can start the server and run it in watch mode using `~ reStart` command on the SBT console.
# Run the server
You can start the server using:
```shell
$ sbt "server/run"
```
## Run the server using docker
You can publish the docker image of the server using `docker:publishLocal` command on the SBT console. Once the image is successfully publish, simply run the server using the [docker-compose.yaml](./docker/docker-compose.yml)
```sh
$ docker-compose run schema-validator
```
## Demo
Give the [demo](./docs/demo.md) a test drive!