update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user