From 8b51d76ca274ac40b30ac1cf0082daca1d5d946c Mon Sep 17 00:00:00 2001 From: Tait Hoyem Date: Sun, 19 Jul 2020 02:54:10 +0000 Subject: [PATCH] Add basic files --- .gitignore | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 21 +++++++++ __init__.py | 11 +++++ roadmap.txt | 14 ++++++ sub.py | 13 ++++++ 5 files changed, 188 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 __init__.py create mode 100644 roadmap.txt create mode 100644 sub.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b6e4761 --- /dev/null +++ b/.gitignore @@ -0,0 +1,129 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# 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/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3fb7c4f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Tait Hoyem + +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/__init__.py b/__init__.py new file mode 100644 index 0000000..54f2f0b --- /dev/null +++ b/__init__.py @@ -0,0 +1,11 @@ +from flask import ( + Blueprint, Flask +) +from . import sub +app = Flask(__name__) +app.register_blueprint(sub.sbp) + +@app.route('/') +def hello_word(): + return 'Hello world!' + diff --git a/roadmap.txt b/roadmap.txt new file mode 100644 index 0000000..c98dca2 --- /dev/null +++ b/roadmap.txt @@ -0,0 +1,14 @@ +1. Template +a. login page (User Blueprint) +b. register page (User Blueprint) +c. game list page (Game Blueprint) +NO CSS, No server side impl. + +2. Implement +a. login +b. logout +c. basic guessing game (user gives a number to guess; other user must guess it) +d. register +e. clue + +3. CSS diff --git a/sub.py b/sub.py new file mode 100644 index 0000000..d8623ff --- /dev/null +++ b/sub.py @@ -0,0 +1,13 @@ +from flask import ( + Flask, Blueprint +) + +sbp = Blueprint("sub", __name__, url_prefix="/sub") + +@sbp.route("/") +def index(): + return "Index of sub" + +@sbp.route("/test") +def test(): + return "We are the tester, my friend!"