# GHOST TRAVEL 🌍

Travel Agency Website powered by LiteAPI (Nuitee)

## Tech Stack

- **Frontend:** HTML, CSS, Vanilla JavaScript
- **Backend:** Node.js + Express
- **API:** LiteAPI (Nuitee) - Hotel search & booking

## Setup

### 1. Get API Key
Login ke https://dashboard.liteapi.travel/developer/ dan copy API key kamu.

### 2. Configure Environment
```bash
cd ghost-travel/backend
cp .env.example .env
# Edit .env dan paste API key kamu
```

### 3. Install Dependencies
```bash
cd backend && npm install
cd ../frontend
```

### 4. Run Development Server
```bash
cd backend
npm run dev
```

Buka http://localhost:3000

## API Endpoints Used

- `GET /data/hotels` - Search hotels by location
- `POST /hotels/rates` - Get availability & pricing
- `GET /data/places` - Search destinations
- `POST /bookings` - Create booking

## Project Structure

```
ghost-travel/
├── frontend/
│   ├── index.html      # Homepage with search
│   ├── results.html    # Hotel search results
│   ├── details.html    # Hotel details & booking
│   ├── css/
│   │   └── styles.css
│   └── js/
│       └── app.js
├── backend/
│   ├── server.js       # Express server + API proxy
│   ├── .env            # API key & config
│   └── package.json
└── config/
    └── api-config.js
```
