Skip to content

Latest commit

 

History

History
85 lines (66 loc) · 3.1 KB

README.md

File metadata and controls

85 lines (66 loc) · 3.1 KB

Build Status jest

Small Steps

Developers

The Mission

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.

Jump to

Technologies Used

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

How to Run

The Back-End repository needs to be cloned and run for the Front-End to work correctly.

The Back-End repository is available here: small_steps_backend

clone the above repo
  • In the root run
$ npm install
$ npm start

Once these steps are complete

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

Testing

  • In the root run
npm test