# Detergent Manufacturing Costing ERP - cPanel Installation

## Default Login
Email: `admin@costingerp.local`  
Password: `Admin@ERP2026!`

Change this password after first login.

## cPanel Node.js Setup
1. Upload this folder to your subdomain folder, for example: `/home/username/costing.yourdomain.com`.
2. In cPanel, create a MySQL database and user.
3. Import `database/schema.sql` in phpMyAdmin OR run the migration command.
4. Copy `.env.example` to `.env` and add your database details.
5. In cPanel > Setup Node.js App:
   - Application root: the ERP folder
   - Startup file: `server.js`
   - Node version: 18+ or 20+
6. Run:
   ```bash
   npm install
   node database/migrate.js
   node database/seed.js
   ```
7. Restart the Node.js app.

## Modules Included
- Executive dashboard
- Material master
- SKU master
- BOM cost simulation
- Production batch entry
- Costing engine
- Variance foundation
- Reporting with Excel export
- Authentication and roles

## Next Development Extensions
This package is a working enterprise starter. For full SAP-level depth, expand these areas:
- BOM approval workflow UI
- full actual consumption entry screen per batch
- monthly costing freeze/unfreeze
- PDF report templates
- inventory purchase/issue screens
- user permissions editor
