/mbt-api

Official Web API repository for Morgantown Bus & PRT Tracker for WVU students

Primary LanguageJavaOtherNOASSERTION

Morgantown Bus & PRT Tracker

Official Web API repository

This project has no relation to West Virginia University (WVU) or Mountain Line Transit Authority


mbt-api

Other compoenents

Setup

To start the webserver, simply do:

Not Windows
cd /path/to/mbt-api
./activator run
Windows
cd C:\path\to\mbt-api
activator.bat run

The project requires a number of configuration strings to be set.

  • MongoDB access
  • Java 8
  • Twitter App Credentials (mostly required)
/conf/application.conf

Simply rename 'example.private.conf' to 'private.conf', and set the values. Your values will be used, and private.conf is in the .gitignore
MongoDB installation guide

mongo.url="mongodb://localhost/dev"
google.maps.key="browserkey" #not very important
play.crypto.secret="supersecret123"
email {
  username = "youremail@gmail.com"
  password = "yourpassword"
}
/twitter4j.properties

Simply rename example.twitter4j.properties to twitter4j.properties and add your Twitter application keys.
Manage Twitter apps here

debug=true
oauth.consumerKey=key123
oauth.consumerSecret=key123
oauth.accessToken=key123
oauth.accessTokenSecret=key123

I suggest you use IntelliJ IDE, but it isn't necessary.


About

This project is the Web API for the Morgantown Bus & PRT Tracker project. It was made out of a need to track the buses around Morgantown, WV, as a West Virginia University student. It was also made because programming is fun.


License
Copyright 2015 Samuel Heavner

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this software except in compliance with the License.
You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.