Current gas prices in my home state are really expensive. I started wondering how much each starbies run is costing me in terms of gas, so I created the "CommuterCalc".
Explore the docs »
View Demo
Table of Contents
CommuterCalc came about becuase I wanted to know how much my commute to school cost everyday. It uses Mapbox's API for forward geolocating and route maping. I also used the U.S. Department of Energy's Fuel Economy API to grab vehicle data points based on user selection.
There are two versions of this project. I started a vanilla HTML/CSS/JavaScript prototype located in the vanillaPrototype
folder. All you need to do is use your own Mapbox API token. The live version with react is located in ccReact
folder. The following instructions pertain to the react version.
Make sure you have npm installed with
- npm
npm install npm@latest -g
- Get a free API Key at https://www.mapbox.com/
- Clone the repo
git clone https://github.com/lpurgitoryl/commutercalc.git
- Install NPM packages
npm install
- Move into the
ccReact
directorycd ccreact
- Enter your Mapbox API Token where it is required by searching for the keyword "token"
- Run development server with Vite
npm run dev
Nicole Garcia - [email protected]
Project Link: https://commutercalc.vercel.app/