Skip to content

A repository showcasing a Pet Clinic solution spanning multiple technologies and languages

Notifications You must be signed in to change notification settings

IntentArchitect/Samples.PetClinic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samples-PetClinic

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.

Overview

Restful Servers

Three servers are showcased:

  • .NET 5 Restful Server
  • Java SpringBoot Restful Server
  • NextJS (NodeJS) Restful Server

Front-ends

  • An Angular 8 front-end with very basic HTML styling

Getting Started

Open in Intent Architect

Follow the instructions below to open this sample solution in Intent Architect:

  1. Ensure that Intent Architect is installed and that you have the appropriate license.
  2. Open the petclinic.isln file (located in the /intent folder) with Intent Architect.
  3. Explore each application by clicking on the item in the solution dashboard.

Running the applications

Here are some of the startup instructions for each app:

.NET 5 Resful Server

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.

Java SpringBoot Restful Server

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.

NextJS (NodeJS) Restful Server

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.

Angular Front-end

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.

About

A repository showcasing a Pet Clinic solution spanning multiple technologies and languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •