This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from thomastaylor312/ui/actor
feat(petclinic): Compiles Petclinic UI as an actor
- Loading branch information
Showing
55 changed files
with
4,057 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,42 @@ | ||
# wasmCloud Pet Clinic | ||
The wasmCloud Pet Clinic example application is a WebAssembly and wasmCloud-based reimagining of the classic [Spring Boot microservices Pet Clinic](https://github.com/spring-petclinic/spring-petclinic-microservices) example. | ||
The wasmCloud Pet Clinic example application is a WebAssembly and wasmCloud-based reimagining of the | ||
classic [Spring Boot microservices Pet | ||
Clinic](https://github.com/spring-petclinic/spring-petclinic-microservices) example. | ||
|
||
## Application Architecture | ||
The wasmCloud Pet Clinic consists of the following four [actors](./actors): | ||
* [Clinic API](./actors/clinicapi/README.md) - The main JSON (aka "REST") API gateway for interacting with the service | ||
* [Customers](./actors/customers/README.md) - Customers/Owners Actor - roughly equivalent to the original Customers/Owners microservice. | ||
* [Vets](./actors/vets/README.md) - Veterinarians actor, roughly equivalent to the original Vets service. | ||
* [Visits](./actors/visits/README.md) - Visits service, roughly equivalent to the original visits service. | ||
The wasmCloud Pet Clinic consists of the following five [actors](./actors): | ||
* [Clinic API](./actors/clinicapi/README.md) - The main JSON (aka "REST") API gateway for | ||
interacting with the service | ||
* [Customers](./actors/customers/README.md) - Customers/Owners Actor - roughly equivalent to the | ||
original Customers/Owners microservice. | ||
* [Vets](./actors/vets/README.md) - Veterinarians actor, roughly equivalent to the original Vets | ||
service. | ||
* [Visits](./actors/visits/README.md) - Visits service, roughly equivalent to the original visits | ||
service. | ||
* [UI](./actors/ui/README.md) - An actor that contains all assets for the petclinic UI. This actor | ||
will serve the assets through the Clinic API | ||
|
||
The wasmCloud Pet Clinic application has a simple architecture: simply start all four of the actors, push a link definition between the **Clinic API** actor and an **HTTP Server** capability provider, and then push link definitions between the 3 remaining actors and a relational database. Lastly, ensure that both the HTTP Server and relational database capability providers are started. | ||
The wasmCloud Pet Clinic application has a simple architecture: simply start all five of the actors, | ||
push a link definition between the **Clinic API** actor and an **HTTP Server** capability provider, | ||
and then push link definitions between the Customers, Vets, and Visits actors and a relational | ||
database. Lastly, ensure that both the HTTP Server and relational database capability providers are | ||
started. | ||
|
||
## Running the petclinic | ||
|
||
If you'd like a quick out of the box example of the petclinic, you can use the included `run.sh` | ||
script to automatically spin up a running wasmcloud host, database, and all the actors. This does | ||
require `docker` to be installed as all the dependencies are run as docker images. To start | ||
everything, run: | ||
|
||
```console | ||
$ ./run.sh all | ||
``` | ||
|
||
To cleanup everything when you are done: | ||
|
||
```console | ||
$ ./run.sh wipe | ||
``` | ||
|
||
Once it is running, you should be able to access the api on `localhost:8080` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "customers" | ||
version = "0.2.3" | ||
version = "0.3.0" | ||
authors = [ "" ] | ||
edition = "2021" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[build] | ||
target = "wasm32-unknown-unknown" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.