# Quick Setup Guide

## Step 1: Install Dependencies
```bash
npm install
```

## Step 2: Configure Database
Edit `pag.env` if needed (default settings work with XAMPP):
```env
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASS=
DB_NAME=lauksaimn_uzsk_sist
```

## Step 3: Create Database
In MySQL:
```sql
CREATE DATABASE lauksaimn_uzsk_sist;
```

## Step 4: Import Database Schema
```bash
mysql -u root -p lauksaimn_uzsk_sist < docs/MonsterAgro.sql
```

Or import via phpMyAdmin.

## Step 5: Add Activation Columns
```sql
USE lauksaimn_uzsk_sist;
ALTER TABLE users ADD COLUMN activated TINYINT(1) DEFAULT 1;
ALTER TABLE users ADD COLUMN activation_token VARCHAR(100) DEFAULT NULL;
UPDATE users SET activated = 1;
```

## Step 6: Start Server
```bash
node server.js
```

## Step 7: Initialize Sample Data
Open browser: `http://localhost:3001/api/init-fuel-data`

## Step 8: Login
Go to: `http://localhost:3001/login_lapa.html`

Test accounts:
- john@farm.com / pass123
- sarah@farm.com / pass123
- admin@test.com / admin

## Done!
Your MonsterAgro system is ready to use!

## File Structure Created:
```
✅ server.js - Backend server
✅ package.json - Dependencies
✅ pag.env - Configuration
✅ css/style.css - Styles
✅ js/app.js - Main app logic
✅ js/auth.js - Authentication
✅ js/fuel_stats.js - Fuel management
✅ js/profile.js - Profile management
✅ header.html - Unified header
✅ index.html - Home page
✅ login_lapa.html - Login page
✅ register.html - Registration page
✅ degv_stat.html - Fuel statistics
✅ profils.html - Profile page
✅ README.md - Full documentation
```
