diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4e22c39 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +__pycache__/ +*.pyc +.env +venv/ +.venv/ +instance/ +*.sqlite +*.log diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..8acdd82 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.0.1 diff --git a/backend/app.py b/backend/app.py new file mode 100644 index 0000000..46d049f --- /dev/null +++ b/backend/app.py @@ -0,0 +1,18 @@ +from flask import Flask, render_template + +app = Flask( + __name__, + template_folder="../templates", + static_folder="../static", +) + +@app.route("/") +def index(): + return render_template( + "base.html", + page_title="OTB Billing", + content="OTB Billing v0.0.1 is alive." + ) + +if __name__ == "__main__": + app.run(host="127.0.0.1", port=5050) diff --git a/docs/design.md b/docs/design.md new file mode 100644 index 0000000..540f1a7 --- /dev/null +++ b/docs/design.md @@ -0,0 +1,12 @@ +OTB Billing Design + +Purpose: +Track invoices and payments for OutsideTheBox services. + +Payment types: +- Square +- Interac e-transfer +- crypto + +Integration: +Will communicate with outsidethedb for service status. diff --git a/sql/schema_v0.0.1.sql b/sql/schema_v0.0.1.sql new file mode 100644 index 0000000..620491c --- /dev/null +++ b/sql/schema_v0.0.1.sql @@ -0,0 +1 @@ +CREATE DATABASE IF NOT EXISTS otb_billing; diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..0a3a803 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,10 @@ +body { + font-family: Arial; + background: #0f172a; + color: #e5e7eb; +} + +header { + padding: 20px; + background: #111827; +} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..4281a6e --- /dev/null +++ b/templates/base.html @@ -0,0 +1,20 @@ + + + + +{{ page_title }} + + + + + +
+

OTB Billing

+
+ +
+

{{ content }}

+
+ + +