GithubHelp home page GithubHelp logo

shangguan / spring-petclinic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adamquan/petclinic-elastic

0.0 1.0 0.0 14.91 MB

REST version of the Spring Petclinic sample application instrumented with Elastic APM

Dockerfile 1.74% Shell 0.85% HTML 0.54% Python 2.67% TypeScript 17.43% CSS 3.84% JavaScript 4.44% Java 68.48%

spring-petclinic's Introduction

Spring PetClinic Application with the Elastic Stack

The PetClinic application contains a few componets (See architecture diagram at the bottom for detais):

  • The React frontend web application
  • The node.js Express application acting as a proxy for the React web application.
  • The Spring Boot backend application.
  • The Python application for address lookup from an Elasticsearch cluster.

A docker compose allows the user to run the application, backed with Mysql as the data layer, with Elastic APM and Beat instrumentation enabled. The following services are deployed:

  • Pet Clinic via embedded Tomcat with REST API. Instrument with Elastic Java Agent.
  • React UI for Pet Clinic using above. Instrument with Elastic RUM Agent.
  • Elasticsearch
  • Kibana
  • MySQL

Running Petclinic with the Elastic Stack

ES_VERSION=6.4.2 docker-compose -f docker-compose.yml up

Running petclinic locally for development

See instructions for each of the components of the application.

  • Start the Spring Boot backend
	git clone https://github.com/adamquan/spring-petclinic.git
	cd spring-petclinic
	./mvnw spring-boot:run
  • Start the Python address finder
	cd spring-petclinic/address_resolver/src
	pip install gunicorn json-logging-py
	pip install --no-cache-dir -r requirements.txt
	gunicorn --config gunicorn.conf --log-config logging.conf -b :5000 server:app
  • Start the node.js proxy application
	cd spring-petclinic/frontend/server
	npm install
	npm start
  • Start the React frontend
	git clone https://github.com/adamquan/spring-petclinic.git
	cd spring-petclinic/frontend/client
	npm install
	npm start

Understanding the Spring Petclinic application with a few diagrams

See the presentation here

Application Architecture: PetClinic Application Architecture

spring-petclinic's People

Contributors

arey avatar vfedoriv avatar adamquan avatar cyrille-leclerc avatar gordonad avatar tduchateau avatar trepel avatar shangguan avatar aistoica avatar freemansoft avatar liouxiao avatar rstoyanchev avatar verydapeng avatar thinkshihang avatar srenkens avatar patrickcrocker avatar mklose avatar lukasz-szewc avatar jshao111 avatar boly38 avatar vladfau avatar tejasm avatar babinslava avatar meltsufin avatar craigsdennis avatar colinbut avatar cbeams avatar bram-atmire avatar helloworld123122344134 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.