# Quick Start Guide

## 1️⃣ Install Dependencies
```bash
npm install
```

## 2️⃣ Setup Database

### Generate Bcrypt Hash
Open Node.js terminal and run:
```javascript
const bcrypt = require('bcrypt');
bcrypt.hash('admin123', 10, (err, hash) => {
  console.log('Hash:', hash);
});
```

### Import Database
```bash
mysql -u root -p numerology_master < database.sql
```

Then update the admin password:
```sql
UPDATE admin SET password = 'PASTE_YOUR_HASH_HERE' WHERE email = 'admin@numerology.com';
```

## 3️⃣ Configure .env
Copy `.env.example` to `.env` and update if needed:
```bash
cp .env.example .env
```

Current values should work if MySQL is set up correctly.

## 4️⃣ Start Server

### Development
```bash
npm run dev
```

### Production
```bash
npm start
```

Server runs on: **http://localhost:5000**

## 5️⃣ Test API

### Login
```bash
curl -X POST http://localhost:5000/api/admin/login \
  -H "Content-Type: application/json" \
  -d '{"email":"admin@numerology.com","password":"admin123"}'
```

### Get Users
```bash
curl http://localhost:5000/api/users \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## 📚 Full Documentation
See **README.md** for complete API documentation.

## ✅ Ready!
Your production-ready backend is running! 🚀
