initial commit

pull/1/head
androiddrew 7 years ago
commit dcbd929ef7

71
.gitignore vendored

@ -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

@ -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()

@ -0,0 +1,2 @@
pip-tools
pytest

@ -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

@ -0,0 +1,2 @@
Flask==1.0.2
Flask-Cors==3.0.4

@ -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
Loading…
Cancel
Save