This commit is contained in:
Iliyan Angelov
2025-11-16 15:12:43 +02:00
parent 824eec6190
commit 93d4c1df80
54 changed files with 1606 additions and 1612 deletions

View File

@@ -3,9 +3,9 @@
## 📦 Files Created
### Core Server Files
1. **`.env`** - Environment configuration (với mật khẩu và secrets)
2. **`src/server.js`** - Server entry point với database connection
3. **`src/app.js`** - Express application setup với middleware
1. **`.env`** - Environment configuration (with passwords and secrets)
2. **`src/server.js`** - Server entry point with database connection
3. **`src/app.js`** - Express application setup with middleware
### Controllers
4. **`src/controllers/authController.js`** - Authentication logic
@@ -230,11 +230,11 @@ CLIENT_URL=http://localhost:5173
### 1. Database Setup
```bash
# Tạo database
# Create database
mysql -u root -p
CREATE DATABASE hotel_db;
# Chạy migrations
# Run migrations
cd d:/hotel-booking/server
npm run migrate