wretchedesigns_the-Website

Wretched Designs - Split Architecture

Overview

Wretched Designs implements a split deployment architecture with separate customer-facing static site and admin Docker container.

Architecture

Customer Site (customer/)

Admin System (admin/)

Quick Start

1. Setup Repository

git clone <repository-url>
cd wretchedesigns_the-Website

2. Configure GitHub Secrets

In GitHub Repository Settings → Secrets and Variables → Actions:

CLOUDFLARE_ZONE_ID=<your-cloudflare-zone-id>
CLOUDFLARE_API_TOKEN=<your-cloudflare-api-token>

3. Run Admin System

cd admin/
cp .env.example .env.local
# Edit .env.local with your Google OAuth credentials and secrets
docker-compose up -d

4. Access Systems

Workflow

  1. Admin Interface: Make content changes (gallery, products, etc.)
  2. Finalize Button: Click “🚀 Finalize & Deploy Live”
  3. Git Operations: Auto-commit and push to GitHub main branch
  4. GitHub Actions: Triggers automated build and deployment
  5. Cloudflare: Automatically purges cache for instant updates

Security

Development

Customer Site

cd customer/
# Edit index.html, styles.css, app.js

Admin System

cd admin/
npm run dev # Development server

Deployment

```bash

Changes are automatically deployed via GitHub Actions

Just commit to main branch or use the Finalize button in admin