Initial commit: Setup FastAPI project structure

This commit is contained in:
Misaka_Company
2026-05-11 09:44:34 +08:00
commit 2cc476b314
4 changed files with 23 additions and 0 deletions

13
README.md Normal file
View File

@@ -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
```

0
app/__init__.py Normal file
View File

8
app/main.py Normal file
View File

@@ -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"}

2
requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
fastapi>=0.115.0
uvicorn[standard]>=0.34.0