This project is a web application that helps users calculate the solar energy system's specifications based on their power requirements. The application is built using React and integrates with Firebase for data storage.
The SolarSystemCalculator class is responsible for calculating the specifications of a solar energy system based on the given maximum power requirement in kilowatts (KW). The class contains static properties that represent the characteristics of the solar panels used in the system and various methods to perform the calculations.
The BudgetForm component allows users to enter their desired power requirement in kilowatts (KW) and simulates a solar energy system based on the input. The user's input is validated, and if valid, the calculated data is stored in the Firebase database.
The BudgetSummary component retrieves and displays the calculated data of the solar energy system from the Firebase database. The data is fetched based on the unique ID passed via the URL parameters.
The Header component represents the landing page of the application. It allows users to enter their name, email, and phone number before proceeding to the budget form. The form's inputs are validated, and if all inputs are valid, the user is navigated to the BudgetForm component.
The global.css file contains global styles used throughout the application.
To run the application locally, follow these steps:
- Clone the GitHub repository for the project.
- Ensure that you have Node.js and npm (Node Package Manager) installed on your machine.
- Navigate to the project's root directory in your terminal.
- Run
npm installoryarn installto install the project dependencies. - Start the development server using
npm startoryarn start. - Open your web browser and go to
http://localhost:3000to access the application.
- React
- React Router
- Firebase
- HTML
- CSS
This project is licensed under the MIT License - see the LICENSE file for details.


