This project has no relation to West Virginia University (WVU) or Mountain Line Transit Authority
Other compoenents
To start the webserver, simply do:
cd /path/to/mbt-api
./activator run
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)
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"
}
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.
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.
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.