kyledinh / zio-petclinic-scala-3 Goto Github PK
View Code? Open in Web Editor NEWUpdated zio-petclinic example app to use Scala 3
License: Apache License 2.0
Updated zio-petclinic example app to use Scala 3
License: Apache License 2.0
Does not update owner with PATCH
case req @ Method.PATCH -> !! / "owners" / id =>
for {
ownerId <- parseOwnerId(id)
updateOwner <- parseBody[UpdateOwner](req)
_ <- service.update(
ownerId,
updateOwner.firstName,
updateOwner.lastName,
updateOwner.address,
updateOwner.phone,
updateOwner.email
)
```
README.md says:
Run the frontend in a separate Terminal 2
open http://localhost:3000
make frontend-up
However, the Makefile has this target:
frontend-up:
@open http://localhost:3000
@cd js-javascript && yarn exec vite
Note that the Makefile already includes the "open http://localhost:3000". However, this make target doesn't work because there is no js-javascript
subdirectory. There is a js-frontend
directory, however. The Makefile should be updated.
backend error parsing the Owner UUID from request:
backend[ERROR] [KQueueEventLoopGroup-2-7] INFO petclinic.server.ClinicServer.loggingMiddleware.$anon - Request: Request(Http_1_1, GET, URL(/owners/9e39f691-13f7-4dfa-b6ec-94bb2e0a1e97,Relative,Map(),None), Headers(Chunk((Host,localhost:8080),(Connection,keep-alive),(sec-ch-ua,"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"),(sec-ch-ua-mobile,?0),(User-Agent,Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36),(sec-ch-ua-platform,"macOS"),(Accept,*/*),(Origin,http://localhost:3000),(Sec-Fetch-Site,same-site),(Sec-Fetch-Mode,cors),(Sec-Fetch-Dest,empty),(Referer,http://localhost:3000/),(Accept-Encoding,gzip, deflate, br),(Accept-Language,en-US,en;q=0.9),(content-length,0))))
backend BEFORE parseOwnerID !!!!!!
On a clean Postgres database, it fails to create the initial tables
sbt:pet-clinic> backend/reStart
[info] Stopping application backend (by killing the forked JVM) ...
backend ... finished with exit code 143
[info] Starting application backend in the background ...
backend Starting petclinic.Main.main()
[success] Total time: 2 s, completed Oct 21, 2022, 6:33:43 AM
backend[ERROR] [ZScheduler-Worker-4] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
backend[ERROR] [ZScheduler-Worker-4] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
backend RESETTING DATABASE!
backend[ERROR] [ZScheduler-4] INFO org.flywaydb.core.internal.license.VersionPrinter - Flyway Community Edition 9.4.0 by Redgate
backend[ERROR] [ZScheduler-4] INFO org.flywaydb.core.internal.license.VersionPrinter - See what's new here: https://flywaydb.org/documentation/learnmore/releaseNotes#9.4.0
backend[ERROR] [ZScheduler-4] INFO org.flywaydb.core.internal.license.VersionPrinter -
backend[ERROR] [ZScheduler-4] INFO org.flywaydb.core.internal.database.base.BaseDatabaseType - Database: jdbc:postgresql://localhost:5432/postgres (PostgreSQL 14.5)
I got passes this when I originally worked on it, by manually running the 2 sqls in backend/src/main/resources/db/migration/V1_*.sql
Need to fix so it will do the initial migration.
Use sbtn (native) to use SBT Server for make targets
petclinic/QuillContext.scala has hardcoded database user/password/database. These should be taken from application.conf.
If you click the "Add Owner" button from the Owners page, you get a form to fill out. If you fill it out and press Save, the form disasppears, but the new owner doesn't show up in the list. In fact, it doesn't appear that a POST HTTP request is made to the backend at all.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.