Skip to content

Provides multiple options to get the user to their destination and sends real-time updates via text if there are any delays. Notification options include: traffic, special events, transit delays, and weather updates.

karolina-benitez/Commute-Buddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commute Buddy

Tired of having to check multiple sources each morning in preparation for your commute? Let Commute Buddy check traffic, weather, detours, and events for you! Commute Buddy will notify you if anything occurs that will cause a delay in your daily commute and give you suggestions on alternate routes or ways to get to your destination.

Commute Budy Landing Page Screenshot

Built With

Data

Google Maps JavascriptAPI

The Maps JavaScript API lets you customize maps with your own content and imagery for display on web pages and mobile devices. The Maps JavaScript API features four basic map types (roadmap, satellite, hybrid, and terrain) which you can modify using layers and styles, controls and events, and various services and libraries.

Twilio SMS

Text messaging. SMS. Use the Twilio API for SMS to send and receive text messages over the carrier network to any phone, anywhere in the world. From a Twilio phone number, SMS messages are delivered globally.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

How to Set Up

  • In terminal, in home directory ~, clone the repo, git clone https://github.com/karolina-benitez/Commute-Buddy.git.

  • In terminal, cd Commute-Buddy, run npm i -S body-parser dotenv express pg

  • This will install: body-parser, dotenv, express, and node-postgres.

  • Download and install PostgresSQL.

  • Open PostgreSQL, create a connection using Host: localhost. The port is 5432 by default.

  • In the connection, add a database named commutebuddy.

  • Go to commutebuddy database, run the following query to create a table called udata.

CREATE TABLE udata (
  id SERIAL,
  uid VARCHAR, 
  firstname VARCHAR, 
  lastname VARCHAR,
  email VARCHAR,
  phonenumber INT,
  trafficalert BOOLEAN DEFAULT FALSE,
  eventalert BOOLEAN DEFAULT FALSE,
  weatheralert BOOLEAN DEFAULT FALSE,
  transitalert BOOLEAN DEFAULT FALSE,

);
  • Next, create a table called trips.
CREATE TABLE trips (
  id SERIAL,
  uid VARCHAR, 
  originid VARCHAR, 
  destinationid VARCHAR, 
  arrivedate VARCHAR,
  departdate VARCHAR
);
  • Sign up for Firebase, so that Firebase can create a uid for each user

  • In Terminal, cd ../client, to go back to /client folder, run npm i -S firebase react-bootstrap react-datepicker react-router-dom

  • This will install: firebase, react-bootstrap, react-datepicker, and react-router-dom.

  • In the /client folder, run npm start, enjoy!

About

Provides multiple options to get the user to their destination and sends real-time updates via text if there are any delays. Notification options include: traffic, special events, transit delays, and weather updates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published