
- Set up project structure with FastAPI - Create SQLite database with SQLAlchemy - Implement Alembic for database migrations - Add CRUD operations for items resource - Create health endpoint - Update documentation generated with BackendIM... (backend.im)
16 lines
451 B
Python
16 lines
451 B
Python
from fastapi import FastAPI
|
|
from app.api.endpoints import router as api_router
|
|
from app.api.health import router as health_router
|
|
|
|
app = FastAPI(
|
|
title="Generic REST API",
|
|
description="A generic REST API built with FastAPI and SQLAlchemy",
|
|
version="0.1.0",
|
|
)
|
|
|
|
app.include_router(api_router)
|
|
app.include_router(health_router)
|
|
|
|
if __name__ == "__main__":
|
|
import uvicorn
|
|
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True) |