Skip to content

Commit d966bb8

Browse files
committed
initial commit
0 parents  commit d966bb8

3 files changed

Lines changed: 75 additions & 0 deletions

File tree

.gitignore

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Ignore node_modules
2+
node_modules/
3+
4+
# Ignore Python cache and virtual environments
5+
__pycache__/
6+
*.pyc
7+
venv/
8+
.env/
9+
10+
# Ignore logs
11+
*.log
12+
13+
# Ignore OS files
14+
.DS_Store
15+
Thumbs.db
16+
17+
# Ignore build and dist folders
18+
dist/
19+
build/
20+
21+
# Ignore IDE/editor folders
22+
.vscode/
23+
.idea/
24+
25+
# Ignore coverage reports
26+
coverage/
27+
*.coverage
28+
29+
# Ignore dotenv files
30+
.env
31+
.env.*
32+
33+
# Ignore package lock files
34+
package-lock.json
35+
yarn.lock
36+
37+
# Ignore test output
38+
*.out
39+
40+
# Ignore temporary files
41+
*.tmp
42+
*.swp
43+
44+
# Ignore compiled files
45+
*.class
46+
*.o
47+
*.so
48+
49+
# Ignore docker files
50+
docker-compose.override.yml
51+
52+
# Ignore Terraform files
53+
.terraform/
54+
*.tfstate
55+
*.tfstate.backup
56+
57+
# Ignore Jupyter notebooks checkpoints
58+
.ipynb_checkpoints/

README.md

Whitespace-only changes.

main.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from fastapi import FastAPI, APIRouter
2+
3+
4+
app = FastAPI()
5+
router = APIRouter()
6+
7+
8+
@router.get("/")
9+
def read_root():
10+
return {"message": "Hello, World!"}
11+
12+
13+
@router.get("/health")
14+
def health_check():
15+
return {"status": "healthy"}
16+
17+
app.include_router(router)

0 commit comments

Comments
 (0)