Make sure you have Node.js and npm (Node Package Manager) installed on your machine. You can download and install them from the official website: Node.js.
Clone the repository containing your BMI calculator application.
git clone https://github.com/DarkHoust/BMI_calculator.git
cd bmi_calculator
Install the required npm packages by running the following command in your terminal:
npm install
In case of access error, try this command in your terminal:
sudo npm install
This will install the necessary dependencies specified in your package.json file.
Start the application using the following command:
node root
Open your web browser and go to "http://localhost:3000" to access the BMI calculator.
Your BMI calculator application should now be running, and you can use it by entering the required information on the webpage.
Note: Ensure that the mainPageScripts.js file is served correctly from the /public/js/ path. If you encounter any issues with static files, make sure your Express app is configured to serve static files from the public directory.
Remember that this set of instructions assumes your Express application is set up to handle routes correctly, and you have a main entry point file (e.g., root.js) where you initialize and configure your Express app. If you have a different structure, adjust the instructions accordingly.
{
"dependencies": {
"body-parser": "^1.20.2",
"express": "^4.18.2",
"nodemon": "^3.0.2"
}
}
Sultan 'DarkHost'