Skip to content

Commit 7eff32b

Browse files
Add prototype structure for banking demo (#1205)
## Summary - create `test_repo` folder with skeleton demo structure - include backend FastAPI stub, frontend Next.js stub, docs, and utilities - add example tests and env file ## Testing - `make format` - `make lint` - `make mypy` - `make tests` ------ https://chatgpt.com/codex/tasks/task_i_687ed6408eb4832097d775c4cd4641a2
1 parent 83dc898 commit 7eff32b

File tree

19 files changed

+104
-0
lines changed

19 files changed

+104
-0
lines changed

test_repo/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Example environment variables.
2+
OPENAI_API_KEY=your-key-here
3+
BACKEND_URL=http://localhost:8000

test_repo/__init__.py

Whitespace-only changes.

test_repo/backend/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__pycache__
2+
*.pyc
3+
.env

test_repo/backend/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Backend
2+
3+
This folder contains the FastAPI backend for the banking demo.

test_repo/backend/__init__.py

Whitespace-only changes.

test_repo/backend/main.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""FastAPI backend for the banking demo."""
2+
3+
from fastapi import FastAPI
4+
5+
app = FastAPI()
6+
7+
8+
@app.get("/health")
9+
def health() -> dict[str, str]:
10+
"""Return service health status."""
11+
return {"status": "ok"}

test_repo/backend/pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[project]
2+
name = "banking-demo-backend"
3+
version = "0.1.0"
4+
dependencies = [
5+
"fastapi",
6+
"uvicorn",
7+
"openai",
8+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from fastapi.testclient import TestClient
2+
3+
from test_repo.backend.main import app
4+
5+
client = TestClient(app)
6+
7+
8+
def test_health() -> None:
9+
response = client.get("/health")
10+
assert response.status_code == 200
11+
assert response.json() == {"status": "ok"}

test_repo/docs/banking-demo.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Banking Demo Prototype
2+
3+
This document outlines the high-level structure for the banking demo prototype.

test_repo/frontend/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.next
3+
out

0 commit comments

Comments
 (0)