Skip to content

The main goal behind this application is to raise awareness about road problems among the users. That way, drivers can avoid going through some path just by consulting this application.

Notifications You must be signed in to change notification settings

mbumba/traffic-alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traffic Alerts

The main goal behind this application is to raise awareness about road problems among the users. That way, drivers can avoid going through some path just by consulting this application.

You can see a live demo on http://cloud-25.skelabb.ltu.se

Requirements

How to install and start the application on Ubuntu

git clone https://github.com/mbumba/traffic-alerts 
cd traffic-alerts
npm install    #will install all project dependencies

Now is the time for create new MySQL database and then import the table from file: traffic-alerts.sql

mysql -u username -p   #Type your MySQL username instead of username
#After login you should get a MySQL prompt and type this:
CREATE DATABASE traffic-alerts;
EXIT;
#Now you can import table from .sql file:
mysql -u username -p -D traffic-alerts < traffic-alerts.sql #Type your MySQL username instead of username

Edit the server configuration file and set MySQL credentials and Facebook APP credentials

nano config.js

Edit the Facebook loader for client side and set Facebook APP id

nano public/js/facebook-loader.js

In this point is everything ready for run the application.

nodejs .

If you didn't change application PORT, it will run on port 8888

How to use TrafficAlerts API

The simple example, how to use TA API is included in this repository in direcotory: api-example. Please read comments of code in file index.html in this directory.

How to use only client side application

Use only directory: public, which contains everything for client side.

Edit the Facebook loader and set your Facebook APP id

nano public/js/facebook-loader.js

Then edit TrafficAlerts APP file and set Host variable on line 12. If you want to use this server, basically set: http://cloud-25.skelabb.ltu.se:80

nano public/js/app.js

Documentation

You can find documentation for this work in file report.pdf in root folder of this repository.

About

The main goal behind this application is to raise awareness about road problems among the users. That way, drivers can avoid going through some path just by consulting this application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published