Giter VIP home page Giter VIP logo

medilabosolutions's Introduction

MediLaboSolutions

Microservice Project for openclassrooms project 9 via Spring boot

It is an application to manage a list of patients, add some notes and get an assessment of risk of diabetes.

Used By

This project is used by OpenClassRooms in attempt to validate the project 9 from the formation for learn the java technology.

Green Code Recommandations

Although 6 of the 11 major green code practices already in place in the application such as : create a minimalist website; refactor functions and use optimized algorithms; eliminate unnecessary functions; reduce duplicate code by creating functions; use a micro-services architecture; we could improve the application by following the below recommendations :

  1. Use efficient data structures adapted to the data you are going to store there : Instead of loading an entire patient and his attributes and all the notes and their attributes, we could retrieve only the attributes necessary for the proper processing of the assessment-service methods: PatientDTO: patientId, userId, gender, birthdate & NoteDTO: content.

  2. Limit the number of HTTP/HTTPS requests to your servers : Instead of going through the gateway, assessment-service could retrieve data directly from patient-service and note-service by communicating via Spring Cloud OpenFeign.

  3. When deploying, you should choose a certified ecological host like Digital Forest which offers low-carbon private Cloud servers without air conditioning, powered by renewable energies, they have an environmental charter.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

This application was developed with the following configuration

  • Java 17.0.6

  • Maven 3.9.2

  • Spring Boot 3.2.1

  • Docker 24.0.2

Installing

  • command git clone https://github.com/Vanessa-Roy/MediLaboSolutions.git

  • command mvn clean package to each microservices [ patient-service ; note-service ; gateway-service ; assessment-service ; client-service ]

  • configure the .env.docker for the following microservices [ patient-service ; note-service ; assessment-service ; client-service ] ; You must help you with the several .env.docker.example

Running App

  • command docker-compose up --build [ -d if you want to skip the details ]

  • command docker-compose stop [ to stop running the containers ]

  • command docker-compose down [ to remove the containers ]

Documentation

architecture:

docker-compose schema

patient-service:

patient-service-diagram jacoco-report-patient

note-service:

note-service-diagram jacoco-report-note

assessment-service:

assessment-service-diagram jacoco-report-assessment

client-service:

client-service-diagram jacoco-report-client

Author

@Vanessa-Roy

medilabosolutions's People

Contributors

vanessa-roy 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.