GithubHelp home page GithubHelp logo

bmicalculator's Introduction

BMI Calculator

BMI Calculator is a demonstration of a distributed .NET microservices application, utilizing Docker for orchestration. This project highlights the use of asynchronous programming, fault isolation via the Polly library, and demonstrates the effectiveness of microservices in handling complex tasks. The application consists of two microservices: "Collector" for data gathering and validation, and "Calculator" for BMI calculation based on height and weight, determining BMI status (e.g., Overweight, Underweight, etc.). It also features a GUI (MVC) for displaying the calculator interface.

.NET Microservices Docker HTML5 JavaScript CSS3


Key Features

  • Asynchronous Communication: Seamless interaction between the Collector and Calculator services.
  • Fault Isolation: Incorporation of the Polly library for robust retry patterns, ensuring resilience.
  • Logging: Implementation of Seq for efficient tracking and visualization of logs.
  • User Interface: An MVC architecture-based service that serves as the domain interacting with the Collector service.

Components

  • Collector Service: Gathers and validates user data for BMI calculation.
  • Calculator Service: Computes the BMI based on height and weight and determines the corresponding health status.
  • User Interface: A front-end solution presenting a user-friendly BMI calculator.
  • Monitoring: Includes logging mechanisms for tracking and analysis.

Technologies

  • .NET: Utilized for building microservices and the UI.
  • Docker: Employed for containerization and orchestration of services.
  • Polly: Integrated for implementing resilience patterns.
  • Seq: Used for visualizing and managing logs.

Installation and Setup

  1. Install Dependencies:
    • Collector: Newtonsoft.json, Polly, Microsoft.Extensions.Http.Polly
    • Calculator: No additional dependencies.
    • Monitoring: Serilog, Serilog.Enrichers.Span, Serilog.Sinks.Seq, Serilog.Sinks.Console
    • UI: Polly, Microsoft.Extensions.Http.Polly, Newtonsoft.json
  2. Run: Execute docker compose up –build ui-service to start the application.
  3. Access:

Contributing

Contributions are welcome. Special thanks to Wehba Korouni for the cooperation. This project is maintained by Said Mansour.


Contact

For any inquiries or contributions, please open an issue on the project's GitHub page.


bmicalculator's People

Contributors

saidrmansour avatar

Watchers

 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.