commit 2cc476b314dc6d2e2e947ce8f9c252fdc2ecdfe8 Author: Misaka_Company Date: Mon May 11 09:44:34 2026 +0800 Initial commit: Setup FastAPI project structure diff --git a/README.md b/README.md new file mode 100644 index 0000000..aab7446 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# CargoTrace FastAPI Backend + +FastAPI backend service for the CargoTrace platform. + +## Getting Started + +```bash +python -m venv .venv +source .venv/bin/activate # Linux/Mac +# or .venv\Scripts\activate # Windows +pip install -r requirements.txt +uvicorn app.main:app --reload +``` diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/main.py b/app/main.py new file mode 100644 index 0000000..7019b25 --- /dev/null +++ b/app/main.py @@ -0,0 +1,8 @@ +from fastapi import FastAPI + +app = FastAPI(title="CargoTrace API", version="0.1.0") + + +@app.get("/") +async def root(): + return {"message": "Welcome to CargoTrace API"} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..50b0ab1 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +fastapi>=0.115.0 +uvicorn[standard]>=0.34.0