Skip to content

A database application exploring real-time relationships between Car Accidents and Weather

Notifications You must be signed in to change notification settings

kevinxu12/SafeRoads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe-Roads

CIS 550 (Databases & Info Systems) final project at the University of Pennsylvania that features a website with functionalities for querying and visualizing U.S. accident data with associated weather factors.

Installation

Instructions for Running the Web App

  • Step 1: Navigate to the Webapp folder
  • Step 1.1: Create .env file with ATLAS_URI
  • Step 2: To run the above 2 commands concurrently (in development only) run npm run dev
  • Step 2.1: Navigate to the web folder and run npm install and npm start
  • Step 2.2: Navigate to the server folder and run npm install and node server.js

Instructions for how to run your queries.

  • Step 1: Navigate to the corresponding routes folder and make a new routes.js file.
  • Step 2: Make the new routes file a requirement in server.js and pass in the initialized db instance
  • Step 3: Call db.execute with your queries

Instruction for Deployment

  1. git subtree push --prefix WebApp heroku master
  2. https://github.com/pupostd/heroku-buildpack-nodejs-oracledb

Known bugs and how to prevent

  • After calling a db command, quitting the server.js file takes a while with control c. Run server.js
  • Make sure your queries use a backtik and not a quotation mark.
  • Look at testRoutes as an example for how to write routes
  • When query has SQL syntax error have to restart server.

About

A database application exploring real-time relationships between Car Accidents and Weather

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •