Eco Way Finder is a sustainable navigation system that helps users find eco-friendly routes for their travel. This README file provides instructions on setting up and running the Eco Way Finder application.
Before you begin, ensure you have met the following requirements:
-
Clone the Eco Way Finder repository to your local machine:
https://github.com/varund2003/Eco-way-finder.git
-
Navigate to the project directory:
cd eco-way-finder
-
Install the project dependencies:
npm install
The configuration file is located at config/config.js
. You may customize the settings according to your requirements.
The server script uses a simple configuration file to set the port and the path to the HTML file it serves. Follow these steps to configure the server for your environment:
-
Open the
config.json
file in the project directory. -
Update the configuration values as needed:
{ "port": 3000, "htmlFilePath": "C:/Users/dvaru/Downloads/eco way finder/Eco way finder.html" }
- port: Specify the port on which the server will run. The default is 3000.
- htmlFilePath: Provide the full path to your HTML file. Ensure the path uses forward slashes and includes the drive letter (e.g.,
C:/
).
-
Save the
config.json
file. -
Run the server again:
node index.js
-
Open your web browser and navigate to http://localhost:3000 to access the HTML file.
Note: If the HTML file is moved or the path is incorrect, the server will return a 500 error. Make sure to verify the path in the config.json
file.
Feel free to customize the instructions based on your specific project's needs. If there are additional configuration options or considerations, include them in this section.
-
Start the Eco Way Finder application:
npm start
-
Open your web browser and navigate to http://localhost:3000.
-
Explore the Eco Way Finder interface, enter your starting and ending locations, and discover eco-friendly routes.
We welcome contributions! If you'd like to contribute to Eco Way Finder, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request to the main repository.
This project is licensed under the MIT License.