Skip to content

fahus/Project_Greenprint_Frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Greenprint Frontend

Build Status Planet needs saving


About

A travel app for the environmentally conscious. Simply enter origin and destination locations in the search function and receive available routes for transit, car, cycle, walking and flight along with their carbon emissions. Sign up for additional features such as being able to save journeys and view them in your personalised dashboard!

Visit our site at https://project-greenprint.herokuapp.com/

You can use this with our backend API: https://github.com/natyeo/Project_Greenprint_Backend or your own.

DEMO

Team

Setup

Clone this repository. Once inside the root folder run the following command to install dependencies.

npm install

To run the server locally, type npm start Application will run on localhost:3000

Testing

To run end-to-end tests: npx cypress open For unit tests: npm test

Usages

  • User can search for the available routes(mode/distance/time/carbon emission)for ground and air journey
  • User can be redirected to the Google Maps route for that specific route
  • User can sign up/login to save their journey
  • User can go to dashboard section to view a breakdown of their journey history

Overview of the app

overview

Plan a ground journey

make_journey-ground

Redirect to Google Map

redirect

Plan a flight

make_journey-air

Save journey to dashboard

save-journey

Dashboard

The dashboard is based on history journey data (available upon signing up) of that specific user, where we display a detailed analysis of:

  • carbon(kg) per journey taken by transport mode (rail, car, or plane)
  • distance(miles) travelled by transport mode
  • total carbon(kg) by mode of transport

dashboard1

dashboard2

API local usage

API runs with the following technologies:

API tested with the following frameworks:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.1%
  • CSS 12.9%
  • HTML 2.0%