# SwiftWheels PMS

Promotion & Marketing Subsystem for Vehicle Rental & Sales Management.

## Quick Start

```bash
npx swiftwheels-pms
```

Requires MongoDB running on `localhost:27017`.

Open http://localhost:5000 and log in with:
- **Username:** admin
- **Password:** admin123

## Environment Variables

| Variable    | Default                                      | Description          |
| ----------- | -------------------------------------------- | -------------------- |
| `MONGO_URI` | `mongodb://localhost:27017/swiftwheels_pms`  | MongoDB connection   |
| `PORT`      | `5000`                                       | Server port          |

## Development

```bash
# Backend
cd backend && npm install && npm start

# Frontend (separate terminal)
cd frontend && npm install && npm run dev
```

The Vite dev server proxies `/api` requests to the backend on port 5000.

## Build

```bash
npm run build:frontend
```

Output goes to `public/` for production serving via Express.
