As a team we decided to focus on a product that raised awareness of current environmental issues and have built a carbon footprint calculator for people who travel.
Small Steps takes the user’s mode of transport, origin, and destination, and makes a call to the Google Distance Matrix API to find the distance travelled. It then uses this data to calculate the emissions for the journey in kg CO2e per passenger-km. It also allows the user to see lower-carbon alternatives, real-world equivalents of their journey’s emissions, and it links to a site that allows the user to offset their carbon.
Purpose | Technology |
---|---|
Front-End framework | React |
Server framework | Express |
Programming Languages | Javascript, HTML |
CI/CD | Travis |
Hosting | Heroku |
Styling | Bootstrap, CSS |
Testing Frameworks | Jest, Enzyme |
Code Coverage | Jest |
Distance Data | Google Distance Matrix API |
Addresss Autocomplete | Google Maps JS API |
The Back-End repository is available here: small_steps_backend
clone the above repo
- In the root run
$ npm install
$ npm start
clone this repo
- In the root run
$ npm install
$ npm start
- Start script should automatically open a new window with the Front-End app open and running, if this doesn't open automatically navigate to localhost:3000
- To see the Back-End navigate to localhost:5000
- In the root run
npm test