Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sake92/sharaf-petclinic

A PetClinic web app based on sharaf, hepek, and squery
https://github.com/sake92/sharaf-petclinic

full-stack petclinic postgresql sample scala scala3

Last synced: 4 months ago
JSON representation

A PetClinic web app based on sharaf, hepek, and squery

Awesome Lists containing this project

README

        

# sharaf-petclinic

This is a [PetClinic](https://spring-petclinic.github.io/) implementation
with the [Sharaf](https://github.com/sake92/sharaf) mini framework.

## Run

```sh
# start a Postgres instance
docker compose up -d

# run the server
./mill app.run
```

Then go to http://localhost:9001

## Test

```sh
./mill app.test
```

Integration tests are written with help of [Testcontainers](https://testcontainers.com/guides/getting-started-with-testcontainers-for-java/).
Every test suite starts a fresh docker container, executes migrations, tests, and kills the temporary container.
See the [CI](https://github.com/sake92/sharaf-petclinic/actions) of this repo.