This project is a real-time inventory management web application built with FastAPI, PostgreSQL, and WebSockets. It allows users to add, update, and delete inventory items, with all changes instantly reflected across all connected clients.
- Real-time updates: Inventory changes are broadcast to all clients using WebSockets.
- PostgreSQL triggers: Database-level triggers notify the backend of changes.
- Modern frontend: Simple, interactive UI with live status indicators.
- Dockerized: Easy to run locally with Docker and Docker Compose.
- Backend: FastAPI (async), SQLAlchemy
- Database: PostgreSQL (with triggers and NOTIFY/LISTEN)
- Frontend: Vanilla JavaScript (served as static files)
- WebSockets: For real-time communication
- Docker: For containerized development
-
Clone the repository:
git clone <your-repo-url> cd <your-project-directory>
-
Start the application:
docker-compose up --build
-
Access the app:
- Open your browser and go to http://localhost:8000