/BMI

Primary LanguageJavaScript

Body Mass Index (BMI) Web Service

This is a simple web service project that calculates a person's Body Mass Index (BMI) based on their weight and height. The project is developed using Node.js, Express, and Nuxt.js.

The server-side of the application is built using the Express framework for Node.js. It handles the BMI calculation and provides an API endpoint that accepts height and weight values, and returns the corresponding BMI value and health status.

The client-side of the application is built using Nuxt.js. It provides a simple user interface where users can enter their height and weight values and see their corresponding BMI value and health status.

Features:

  • Calculates a person's BMI value and health status based on their height and weight.

  • Provides an API endpoint for BMI calculation.

  • Simple user interface built using Nuxt.js.

Installation

  • Clone the repository using the following command:

    git clone https://github.com/oussama-sbaa/BMI-Project.git

  • Install the dependencies for the front-end part using the following command in the "frontend" folder:

    cd frontend npm install

  • Install the dependencies for the back-end part using the following command in the "backend" folder:

    cd backend npm install

Usage

  • Launch the server for the front-end part using the following command in the "frontend" folder:

    npm run dev

  • Launch the server for the back-end part using the following command in the "backend" folder:

    npm start

  • Access the application using a web browser at the following address:

    http://localhost:3000

Functionality

The application allows calculating a person's BMI by entering their weight and height. It also provides a BMI classification based on the reference values of the World Health Organization (WHO).

Contribution

If you wish to contribute to this project, please follow the steps below:

  • Create a branch for your contribution using the following command:

    git checkout -b

  • Effectuez vos modifications et testez-les localement.

  • Make your changes and test them locally.

  • Send a pull request for your branch. We will review your request and merge your changes if they are relevant.

Thank you for contributing to this project!