
- Set up project structure and FastAPI application - Create database models with SQLAlchemy - Implement authentication with JWT - Add CRUD operations for products, inventory, categories - Implement purchase order and sales functionality - Create reporting endpoints - Set up Alembic for database migrations - Add comprehensive documentation in README.md
10 lines
268 B
Python
10 lines
268 B
Python
import os
|
|
import uvicorn
|
|
from pathlib import Path
|
|
|
|
# Make sure storage directory exists
|
|
storage_dir = Path("/app/storage/db")
|
|
storage_dir.mkdir(parents=True, exist_ok=True)
|
|
|
|
if __name__ == "__main__":
|
|
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True) |