diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..6620e5ae06bf5dfdf020df24b331f3a837b889c6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2015 Anton Sarukhanov + + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..40751fa39cf29fd8ac8e9eea6245c7d8e507d8fb --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# BusMap.py +BusMap.py is a real-time map of public transit vehicle locations. It's written in Python 3.4 with [Flask](http://flask.pocoo.org/). + +##Setup +- Install Python 3.4+, pip and virtualenv. +- Create/enter your virtualenv +- Install dependencies: +`pip install -r requirements.txt` +- Run development server: +`python app.py` + +You should now be able to access the instance on port 5000. + diff --git a/app.py b/app.py index 4245feecb044ada5bf10deae57296ba980b5b261..46ebbd4346a05b35667189e452fd8c05732f8fd4 100644 --- a/app.py +++ b/app.py @@ -12,8 +12,7 @@ app.config.from_pyfile('config.py', silent=True) @app.route('/') def just_testing(): - return str(app.config['SQLALCHEMY_URI']) - return "Brotato!" + return str("Hello World!") if __name__ == '__main__': app.run(host='0.0.0.0')