feat: backend foundation setup with SQLite and FastAPI

This commit is contained in:
Daniel Bedeleanu
2026-04-10 13:44:21 +03:00
parent 3f76610787
commit 46bd6ae733
5 changed files with 107 additions and 0 deletions

12
backend/main.py Normal file
View File

@@ -0,0 +1,12 @@
from fastapi import FastAPI
from . import models
from .database import engine
# Create the database tables
models.Base.metadata.create_all(bind=engine)
app = FastAPI(title="Inventory PWA API", version="0.1.0")
@app.get("/")
def read_root():
return {"message": "Inventory API is running"}