Giter Site home page Giter Site logo

lian-d / go-green Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 793 KB

[Back to Hacking 2021] Providing alternative carbon efficient travel paths within a specified time limit. Entry by SAP Hana and Analytics FPA61 Interns

JavaScript 72.73% HTML 16.50% CSS 9.45% Pug 1.32%

go-green's Introduction

Back To Hacking 2021: Go Green

original

Project Motivation

Environmental problems are always a hot topic. We want to let everyone help the environment by reducing the amount of carbon footprints in their daily travel, so we come up with the idea to create a Google app with carbon footprints.

App functions

The app provides users alternative routes along with carbon footprints under a user defined time constraint, so they can leave the least amount of carbon footprints as well as arriving the destination efficiently.

Technology

We use React as frontend and Express as backend. In the frontend, the user can enter the origin, destination and time limit in the search bar, and a map is pre-loaded with Google map api. When a request is formed, it will return all the alternative routes in the order of least to largest carbon footprints. We created a formula with time and carbon footprint included to list the order.

Difficulties

we are not familiar with frontend and can't load the map well

Success

we sorted out a /maproutes api with all the data correctly returned.

Fontend:

cd /website and use npm start to start the map

original

Backend:

run app.js and query localhost:3000/maproutes using body params origin, destination and timelimit in order to retrieve our carbon score and other information pertaining to the route.

unknown-30

go-green's People

Contributors

jingyuan-joyce avatar lian-d avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.