Browse Source

Build v0.0.1 project skeleton

main
def 2 weeks ago
parent
commit
bf3d367891
  1. 8
      .gitignore
  2. 1
      VERSION
  3. 18
      backend/app.py
  4. 12
      docs/design.md
  5. 1
      sql/schema_v0.0.1.sql
  6. 10
      static/css/style.css
  7. 20
      templates/base.html

8
.gitignore vendored

@ -0,0 +1,8 @@
__pycache__/
*.pyc
.env
venv/
.venv/
instance/
*.sqlite
*.log

1
VERSION

@ -0,0 +1 @@
0.0.1

18
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)

12
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.

1
sql/schema_v0.0.1.sql

@ -0,0 +1 @@
CREATE DATABASE IF NOT EXISTS otb_billing;

10
static/css/style.css

@ -0,0 +1,10 @@
body {
font-family: Arial;
background: #0f172a;
color: #e5e7eb;
}
header {
padding: 20px;
background: #111827;
}

20
templates/base.html

@ -0,0 +1,20 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
<header>
<h1>OTB Billing</h1>
</header>
<main>
<p>{{ content }}</p>
</main>
</body>
</html>
Loading…
Cancel
Save