A Co2 emmisions calculator that is capable of displaying the total Co2 output of a companies employee commutes.
We've been approached by an environmental sustainability consulting firm with a mission to help businesses minimise their carbon footprint. The challenge is to create a user-friendly application that computes a company's carbon emissions, primarily based on employee travel. This project will not only assist businesses in understanding their environmental impact but also encourage sustainable choices in travel and help protect the planet.
- Node JS v 20
- MongoDB
run the following in a terminal
git clone [email protected]:LidzDev/Emissions-Calculator.git
cd Emissions-Calculator
cd server
npm i
npm run server:dev
npm run seed
cd ../client
npm i
npm run dev
To run the web app, please follow these steps:
- Clone the github repository
- On GitHub.com navigate to the main page of the repository;
- Above the list of files, click <>Code;
- Copy the URL of the repository;
- Open Terminal;
- Change the current working directory to the location where you want the cloned directory;
- Type
git clone
, and then paste the URL you copied earlier, and hit enter.
- Set up the server:
- Navigate to the server directory on the terminal;
- Install dependencies
npm i
- Run the server in development mode:
npm run server:dev
- Seed the database:
npm run seed
- Set up the client:
- Navigate to the client directory.
- Install dependencies:
npm install react-leaflet
- run
npm i
- Run the client in development mode:
npm run dev
Launch the web app
Input employee commute data, including:
- Employee name
- Mode of transport
- Distance traveled (in kilometers)
- Frequency (how many times a week the journey is completed)
The app will calculate and display a running total of Co2 emissions based on the user's input.
To view the results, select the 'Results' section from the navigation bar. You can:
- See a list of user submissions.
- View employees Co2 emissions in relation to the whole company in the form of a pie chart.
- View employees starting point of their commute on a map
- [Claire Martin] (https://github.com/cemmartin)
- [Darren Lackie] (https://github.com/DarrenLackie)
- [Lydia Cordell] (https://github.com/LidzDev)
- [Andrew Brown] (https://github.com/andy-brown87)