A production-ready inventory management system built with Flask and PostgreSQL, featuring real-time analytics, product tracking, and automated database seeding.
https://inventory-management-ylmu.onrender.com
Hosted on Render free tier - first request may take 30-60 seconds (cold start)
🔑 Demo Credentials: admin / PasswordforAdmin
- Product Management - CRUD operations with SKU tracking and archiving
- Stock Transactions - Record purchases (IN) and sales (OUT) with notes
- Real-time Analytics - Low stock alerts, top sellers, stock value by category
- Supplier Tracking - Maintain supplier relationships and contact info
- Advanced Reporting - Stock movement history, products by supplier
- Secure Authentication - JWT-based API with password hashing
- Auto-seeding - Generates 100 products and 20 suppliers on first deploy
Backend: Python 3.11 • Flask 3.0 • SQLAlchemy
Database: PostgreSQL 15
Deployment: Docker • Render
Testing: pytest • GitHub Actions CI
git clone https://github.com/Sasaank79/Inventory-Management-System.git
cd Inventory-Management-System
docker-compose upAccess at http://localhost:5000.
Note: No default credentials are included. Use
ADMIN_USERNAMEandADMIN_PASSWORDin your.envfile or environment variables, then run the application to auto-create the admin user.
- Fork this repository
- Connect to Render using the Blueprint
- Set environment variables (
ADMIN_USERNAME,ADMIN_PASSWORD) - Deploy automatically via
render.yaml
See Deployment Guide for detailed instructions.
POST /auth/login # Authenticate user
GET /api/products # List products (paginated)
POST /api/transactions # Record stock transaction
GET /api/analytics/low-stock # Get low stock alertsFull API documentation: docs/API.md (coming soon)
35 automated tests covering all core modules with 96% code coverage.
# Run tests with coverage
pytest tests/ -v --cov=app
# Lint code
flake8 app/ config/ tests/Test Coverage by Module:
| Module | Coverage |
|---|---|
| Auth & Security | 100% |
| Products API | 99% |
| Suppliers API | 100% |
| Analytics API | 93% |
| Transactions | 85% |
app/
├── routes/ # API endpoints (auth, products, analytics)
├── models.py # SQLAlchemy models
└── templates/ # Frontend HTML
config/ # Environment-based settings
tests/ # pytest test suite
render.yaml # Deployment blueprint
MIT License - see LICENSE file
- Live Demo: https://inventory-management-ylmu.onrender.com
- Documentation: docs/
- Issues: GitHub Issues
Built by Sasaank79




