Inspired by the Spring Petclinic sample, this repository uses Intent Architect to model the same application for different languages and technologies using the same Domain and Services metadata and a single front-end that integrates to all the RESTful backends.
Three servers are showcased:
- .NET 5 Restful Server
- Java SpringBoot Restful Server
- NextJS (NodeJS) Restful Server
- An Angular 8 front-end with very basic HTML styling
Follow the instructions below to open this sample solution in Intent Architect:
- Ensure that Intent Architect is installed and that you have the appropriate license.
- Open the
petclinic.isln
file (located in the/intent
folder) with Intent Architect. - Explore each application by clicking on the item in the solution dashboard.
Here are some of the startup instructions for each app:
If you have the .NET 5 SDK installed you can get this solution up and running from command line.
In the Repository's source folder source\dotnet5-petclinic-rest
type the following to compile:
dotnet build .\PetClinic.sln
To run the application:
dotnet run --project .\PetClinic.Api\PetClinic.Api.csproj
!TIP This server is hosted at http://localhost:8080 by default. To access the swagger UI go to http://localhost:8080/swagger.
If you have at least Jave SE 14 or Open JDK 14 and you have Maven installed, then you can get this up and running from command line.
In the Repository's source folder source\nestjs-petclinic-rest
type the following to assemble and compile:
mvn install
mvn spring-boot:run
!TIP This server is hosted at http://localhost:8080 by default. To access the swagger UI go to http://localhost:8080/swagger-ui/index.html.
If you have Node.js library installed you can get this solution up and running from command line.
In the Repository's source folder source\nestjs-petclinic-rest
type the following to assemble and compile:
npm i
npm run start
!TIP This server is hosted at http://localhost:8080 by default. To access the swagger UI go to https://localhost:8080/swagger.
If you have Node.js library installed you can get this solution up and running from command line.
In the Repository's source folder source\anguar-petclinic-web
type the following to compile:
npm i
npm run start
!TIP Start up one of the servers listed above to allow this front-end to communicate with a local API.