diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 887218c..d5158c6 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -35,7 +35,8 @@ "Bash(dir:*)", "Bash(lsof:*)", "Bash(powershell -Command:*)", - "Bash(git rm:*)" + "Bash(git rm:*)", + "Bash(docker ps:*)" ] } } diff --git a/.env.example b/.env.example deleted file mode 100644 index 9543133..0000000 --- a/.env.example +++ /dev/null @@ -1,26 +0,0 @@ -# VIP Coordinator Environment Configuration -# Copy this file to .env and update the values for your deployment - -# Database Configuration -DB_PASSWORD=VipCoord2025SecureDB - -# Domain Configuration (Update these for your domain) -DOMAIN=your-domain.com -VITE_API_URL=https://api.your-domain.com - -# Google OAuth Configuration (Get these from Google Cloud Console) -GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com -GOOGLE_CLIENT_SECRET=your-google-client-secret -GOOGLE_REDIRECT_URI=https://api.your-domain.com/auth/google/callback - -# Frontend URL -FRONTEND_URL=https://your-domain.com - -# Admin Configuration -ADMIN_PASSWORD=ChangeThisSecurePassword - -# Flight API Configuration (Optional) -AVIATIONSTACK_API_KEY=your-aviationstack-api-key - -# Port Configuration -PORT=3000 \ No newline at end of file diff --git a/Makefile b/Makefile deleted file mode 100644 index 4a9f5d2..0000000 --- a/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -.PHONY: dev build deploy - -dev: - docker-compose -f docker-compose.dev.yml up --build - -build: - docker-compose -f docker-compose.prod.yml build - -deploy: - docker-compose -f docker-compose.prod.yml up -d diff --git a/backend/.env.example b/backend/.env.example index 5342e42..a85bf29 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -8,16 +8,22 @@ FRONTEND_URL=http://localhost:5173 # ============================================ # Database Configuration # ============================================ -DATABASE_URL="postgresql://postgres:changeme@localhost:5432/vip_coordinator" +# Port 5433 is used to avoid conflicts with local PostgreSQL +DATABASE_URL="postgresql://postgres:changeme@localhost:5433/vip_coordinator" # ============================================ # Redis Configuration (Optional) # ============================================ -REDIS_URL="redis://localhost:6379" +# Port 6380 is used to avoid conflicts with local Redis +REDIS_URL="redis://localhost:6380" # ============================================ # Auth0 Configuration # ============================================ +# Get these from your Auth0 dashboard: +# 1. Create Application (Single Page Application) +# 2. Create API +# 3. Configure callback URLs: http://localhost:5173/callback AUTH0_DOMAIN="your-tenant.us.auth0.com" AUTH0_AUDIENCE="https://your-api-identifier" AUTH0_ISSUER="https://your-tenant.us.auth0.com/" diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml deleted file mode 100644 index 2c3768e..0000000 --- a/docker-compose.dev.yml +++ /dev/null @@ -1,84 +0,0 @@ -version: '3.8' - -services: - - db: - image: postgres:15 - environment: - POSTGRES_DB: vip_coordinator - POSTGRES_PASSWORD: changeme - volumes: - - postgres-data:/var/lib/postgresql/data - ports: - - 5432:5432 - healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres"] - interval: 5s - timeout: 5s - retries: 5 - - redis: - image: redis:7 - ports: - - 6379:6379 - - keycloak: - image: quay.io/keycloak/keycloak:24.0 - environment: - KEYCLOAK_ADMIN: admin - KEYCLOAK_ADMIN_PASSWORD: admin - KC_DB: postgres - KC_DB_URL: jdbc:postgresql://db:5432/keycloak - KC_DB_USERNAME: postgres - KC_DB_PASSWORD: changeme - KC_HOSTNAME_STRICT: false - KC_HOSTNAME_STRICT_HTTPS: false - KC_HTTP_ENABLED: true - ports: - - 8080:8080 - command: start-dev - depends_on: - db: - condition: service_healthy - healthcheck: - test: ["CMD-SHELL", "curl -f http://localhost:8080/health/ready || exit 1"] - interval: 30s - timeout: 10s - retries: 5 - - backend: - build: - context: ./backend - target: development - environment: - DATABASE_URL: postgresql://postgres:changeme@db:5432/vip_coordinator - REDIS_URL: redis://redis:6379 - KEYCLOAK_SERVER_URL: http://keycloak:8080 - KEYCLOAK_REALM: vip-coordinator - KEYCLOAK_CLIENT_ID: vip-coordinator-frontend - FRONTEND_URL: http://localhost:5173 - PORT: 3000 - NODE_ENV: development - ports: - - 3000:3000 - depends_on: - - db - - redis - - keycloak - - frontend: - build: - context: ./frontend - target: development - environment: - VITE_API_URL: http://localhost:3000/api - VITE_KEYCLOAK_URL: http://localhost:8080 - VITE_KEYCLOAK_REALM: vip-coordinator - VITE_KEYCLOAK_CLIENT_ID: vip-coordinator-frontend - ports: - - 5173:5173 - depends_on: - - backend - -volumes: - postgres-data: diff --git a/frontend/.env.example b/frontend/.env.example new file mode 100644 index 0000000..c4bd19a --- /dev/null +++ b/frontend/.env.example @@ -0,0 +1,10 @@ +# API Configuration +VITE_API_URL=http://localhost:3000/api/v1 + +# Auth0 Configuration +# Get these from your Auth0 dashboard: +# 1. Create Application (Single Page Application) +# 2. Use the Domain, Client ID, and API Audience +VITE_AUTH0_DOMAIN=your-tenant.us.auth0.com +VITE_AUTH0_CLIENT_ID=your-auth0-client-id +VITE_AUTH0_AUDIENCE=https://your-api-identifier