This project is a simple Body Mass Index (BMI) Calculator web application built using React.js for the frontend and Node.js with Express.js and MongoDB for the backend. The BMI calculator estimates body fat based on weight and height, providing users with their BMI value and interpretation.
- Calculate BMI based on weight and height inputs
- Supports both metric (kg, cm) and imperial (lbs, in) unit systems
- Classifies BMI into categories: Underweight, Normal weight, Overweight, and Obesity
- Save BMI data to MongoDB database
- Clear input fields with a single click
- Minimalistic and user-friendly interface
- React.js
- Material-UI for styling
- Axios for making HTTP requests
- Node.js
- Express.js
- MongoDB for data storage
- Mongoose as MongoDB object modeling tool
- CORS for cross-origin resource sharing
- Clone the repository to your local machine.
- Navigate to the
bmi-calculator
directory. - Install dependencies for both frontend and backend:
cd bmi-calculator cd Bmi\ frontend npm install cd .. cd bmi-calculator-backend npm install
- Start the backend server:
cd bmi-calculator-backend npm start
- Start the frontend development server:
cd .. cd Bmi\ frontend npm start
- Access the BMI Calculator application in your web browser at
http://localhost:3000/
.
- Nehal Chuhan - mRcOol7