A Mini ERP System for managing business operations including inventory, sales, and finance tracking.
- Admin and Staff roles
- Session-based login system
- Secure authentication
- Add and manage products
- Update stock levels
- Track quantity changes with history
- Record sales transactions
- Auto-update inventory on sales
- Sales history tracking
- Track revenue from sales
- Basic profit summary dashboard
- Financial analytics
- Total products overview
- Total sales summary
- Revenue analytics
- Backend: Python Flask
- Frontend: HTML5 + CSS3 + Vanilla JavaScript
- Database: SQLite
- API: REST endpoints
- Optional: Docker support
- Python 3.8+
- pip
- SQLite3
-
Clone the repository:
git clone https://github.com/ArcticPeeper/mini-erp-boms.git cd mini-erp-boms -
Create virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Initialize the database:
python init_db.py
-
Run the application:
python app.py
-
Open your browser and navigate to:
http://localhost:5000
-
Admin Login
- Username:
admin - Password:
admin123
- Username:
-
Staff Login
- Username:
staff - Password:
staff123
- Username:
mini-erp-boms/
├── app.py # Main Flask application
├── init_db.py # Database initialization
├── requirements.txt # Python dependencies
├── config.py # Configuration settings
├── models.py # Database models
├── routes/
│ ├── auth.py # Authentication routes
│ ├── dashboard.py # Dashboard routes
│ ├── inventory.py # Inventory management routes
│ ├── sales.py # Sales module routes
│ └── finance.py # Finance module routes
├── static/
│ ├── css/
│ │ ├── style.css
│ │ └── responsive.css
│ └── js/
│ ├── main.js
│ └── forms.js
└── templates/
├── base.html
├── login.html
├── dashboard.html
├── inventory/
│ ├── products.html
│ ├── add_product.html
│ └── edit_product.html
├── sales/
│ ├── transactions.html
│ └── new_sale.html
└── finance/
└── summary.html
POST /api/login- User loginPOST /api/logout- User logout
GET /api/products- List all productsPOST /api/products- Create new productPUT /api/products/<id>- Update productDELETE /api/products/<id>- Delete product
GET /api/sales- List all salesPOST /api/sales- Create new saleGET /api/sales/<id>- Get sale details
GET /api/finance/summary- Get finance summaryGET /api/finance/revenue- Get revenue data
GET /api/dashboard- Get dashboard data
- Login: Use admin or staff credentials
- Manage Inventory: Add/Edit/Delete products and manage stock
- Record Sales: Create sales transactions (inventory auto-updates)
- View Analytics: Monitor revenue and profit on the dashboard
MIT License - Feel free to use this project for learning and development.
ArcticPeeper