Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 3.29 KB

README.md

File metadata and controls

75 lines (53 loc) · 3.29 KB

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!