The Air Quality Calculator is a web application built with React that allows you to calculate the Clean Air Delivery Rate (CADR) based on the Air Changes per Hour (ACH), Room Area, and Ceiling Height of a room.
- Input fields for ACH, Room Area, and Ceiling Height to enter the necessary parameters.
- Calculate CADR button to perform the CADR calculation.
- Display of CADR in two units: CFM (Cubic Feet per Minute) and m³/h (Cubic Meters per Hour).
- Clone the repository or download the source code.
git clone [repository_url]
- Navigate to the project directory in your terminal.
cd CADR-Conscious---storybook
- Run the following command to install the dependencies:
npm install
- Rename the
storybook
directory to.storybook
to enable Storybook.
mv storybook .storybook
- Start the development server by running the following command:
npm start
-
Open your web browser and visit
http://localhost:3000
to access the Air Quality Calculator. -
Enter the desired values for ACH, Room Area, and Ceiling Height.
-
Click the "Calculate CADR" button to perform the CADR calculation.
-
The calculated CADR values in CFM and m³/h will be displayed below.
- To view the Storybook for the CADR-Conscious project, run the following command:
npm run storybook
-
Open your web browser and visit
http://localhost:6006
to access the Storybook interface. -
Explore the different components and their variations in Storybook.
-
There is a Jest testing file in the
stores
folder. -
To ensure the calculator is running properly, run this command:
npm run test
Contributions to the Air Quality Calculator are welcome! If you find any issues or would like to add new features, please open an issue or submit a pull request.
This project is licensed under the MIT License.