Skip to content

Commit a687fd8

Browse files
setting up template
Co-Authored-By: Scott Campit <[email protected]>
0 parents  commit a687fd8

File tree

6 files changed

+1129
-0
lines changed

6 files changed

+1129
-0
lines changed

README.md

Whitespace-only changes.

app/__init__.py

Whitespace-only changes.

app/main.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from fastapi import FastAPI
2+
from fastapi.middleware.cors import CORSMiddleware
3+
import psycopg
4+
5+
app = FastAPI()
6+
7+
# Disable CORS. Do not remove this for full-stack development.
8+
app.add_middleware(
9+
CORSMiddleware,
10+
allow_origins=["*"], # Allows all origins
11+
allow_credentials=True,
12+
allow_methods=["*"], # Allows all methods
13+
allow_headers=["*"], # Allows all headers
14+
)
15+
16+
@app.get("/healthz")
17+
async def healthz():
18+
return {"status": "ok"}

poetry.lock

Lines changed: 1095 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[tool.poetry]
2+
name = "app"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.12"
10+
fastapi = {extras = ["standard"], version = "^0.115.12"}
11+
psycopg = {extras = ["binary"], version = "^3.2.7"}
12+
13+
14+
[build-system]
15+
requires = ["poetry-core"]
16+
build-backend = "poetry.core.masonry.api"

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)