commit dcbd929ef7ad9522a49fa284e1e3f6f7a57ebdd0 Author: androiddrew Date: Fri Jun 15 09:02:53 2018 -0400 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c9ddd86 --- /dev/null +++ b/.gitignore @@ -0,0 +1,71 @@ +# Pycharm +.idea + +# ---> Python +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +venv/ +pypyenv/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# Redis +/dump.rdb + +# Project +config.py + +# Mac +.DS_Store \ No newline at end of file diff --git a/booker/__init__.py b/booker/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/booker/app.py b/booker/app.py new file mode 100644 index 0000000..1bf0a3e --- /dev/null +++ b/booker/app.py @@ -0,0 +1,22 @@ +from flask import Flask, jsonify +from flask_cors import CORS + +# config +DEBUG = True + +# app init +app = Flask(__name__) +app.config.from_object(__name__) + +# enable CORS +CORS(app) + + +# sanity check route +@app.route('/ping', methods=['GET']) +def ping_route(): + return jsonify('pong') + + +if __name__ == '__main__': + app.run() diff --git a/dev_requirements.in b/dev_requirements.in new file mode 100644 index 0000000..423b570 --- /dev/null +++ b/dev_requirements.in @@ -0,0 +1,2 @@ +pip-tools +pytest \ No newline at end of file diff --git a/dev_requirements.txt b/dev_requirements.txt new file mode 100644 index 0000000..47268c8 --- /dev/null +++ b/dev_requirements.txt @@ -0,0 +1,17 @@ +# +# This file is autogenerated by pip-compile +# To update, run: +# +# pip-compile --output-file dev_requirements.txt dev_requirements.in +# +atomicwrites==1.1.5 # via pytest +attrs==18.1.0 # via pytest +click==6.7 # via pip-tools +colorama==0.3.9 # via pytest +first==2.0.1 # via pip-tools +more-itertools==4.2.0 # via pytest +pip-tools==2.0.2 +pluggy==0.6.0 # via pytest +py==1.5.3 # via pytest +pytest==3.6.1 +six==1.11.0 # via more-itertools, pip-tools, pytest diff --git a/requirements.in b/requirements.in new file mode 100644 index 0000000..2a9dcc7 --- /dev/null +++ b/requirements.in @@ -0,0 +1,2 @@ +Flask==1.0.2 +Flask-Cors==3.0.4 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..fabb3d2 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,14 @@ +# +# This file is autogenerated by pip-compile +# To update, run: +# +# pip-compile --output-file requirements.txt requirements.in +# +click==6.7 # via flask +flask-cors==3.0.4 +flask==1.0.2 +itsdangerous==0.24 # via flask +jinja2==2.10 # via flask +markupsafe==1.0 # via jinja2 +six==1.11.0 # via flask-cors +werkzeug==0.14.1 # via flask