formalites Svelte Themes

Formalites

Zuclubit Enterprise Website - Modern Svelte/Vite architecture with CloudFlare Pages deployment

Zuclubit - Enterprise Website

Professional corporate website for Zuclubit - Complete Technology Integration Platform.

🌐 Live Site

šŸ—ļø Architecture

This project follows a modern, serverless architecture:

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  CloudFlare CDN (330+ Global Locations)                    │
│  - HTTPS/SSL                                                 │
│  - DDoS Protection                                           │
│  - WAF (Web Application Firewall)                           │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
                       │
                       ā–¼
         ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
         │  CloudFlare Pages           │
         │  - Static Site Hosting      │
         │  - Edge Functions           │
         │  - Auto Deployment          │
         ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

Benefits:

  • āœ… Cost: ~$0/month (CloudFlare Pages Free Tier)
  • āœ… Performance: <100ms global response time
  • āœ… Scalability: Infinite auto-scaling
  • āœ… Security: Enterprise-grade DDoS protection + WAF
  • āœ… Availability: 99.99% uptime SLA

šŸš€ Quick Start

Prerequisites

  • Node.js >= 20.0.0
  • npm >= 10.0.0
  • Git

Installation

# Clone the repository
git clone https://github.com/Osvaloismtz/zuclubit-site.git
cd zuclubit-site

# Install dependencies
npm install

# Start development server
npm run dev

Visit http://localhost:5173

Build

# Production build
npm run build

# Preview production build
npm run preview

šŸ”„ Development Workflow

We use GitFlow for branch management:

main (production)
  └── develop (integration)
       ā”œā”€ā”€ feature/* (new features)
       ā”œā”€ā”€ bugfix/* (bug fixes)
       └── refactor/* (improvements)

Starting a New Feature

git checkout develop
git pull origin develop
git checkout -b feature/my-feature

# Make changes
git add .
git commit -m "feat: add my feature"
git push origin feature/my-feature

# Create PR to develop

šŸ“– See GITFLOW.md for complete workflow documentation

šŸ¤ Contributing

We welcome contributions! Please read our CONTRIBUTING.md guide.

Development Commands

# Development
npm run dev          # Start dev server
npm run build        # Build for production
npm run preview      # Preview production build

# Code Quality
npm run lint         # Lint code
npm run lint:fix     # Fix lint errors
npm run format       # Format code with Prettier
npm run format:check # Check formatting

# Testing
npm test             # Run tests
npm run test:watch   # Run tests in watch mode
npm run test:coverage # Generate coverage report

# Utilities
npm run clean        # Clean build artifacts
npm run audit        # Security audit

šŸ” Security

Security is a top priority. We implement:

  • Automated Security Scanning: CodeQL, Semgrep, Snyk
  • Dependency Monitoring: Dependabot auto-updates
  • Secret Detection: TruffleHog scans
  • SAST/DAST: Multiple layers of security testing

šŸ”’ Report vulnerabilities: SECURITY.md

šŸ›ļø Architecture & Standards

Technology Stack

  • Frontend: Svelte 4 + Vite 5
  • Styling: Custom CSS with CSS Variables
  • Icons: Lucide Icons
  • Hosting: CloudFlare Pages
  • CDN: CloudFlare Global Network
  • CI/CD: GitHub Actions

Security Standards

  • āœ… OWASP Top 10 compliance
  • āœ… CWE/SANS Top 25 mitigation
  • āœ… NIST Cybersecurity Framework alignment
  • āœ… HTTPS Everywhere with HSTS
  • āœ… CSP (Content Security Policy)
  • āœ… CORS properly configured

Performance Standards

  • āœ… Lighthouse Score: 90+ (All categories)
  • āœ… First Contentful Paint: <2s
  • āœ… Largest Contentful Paint: <2.5s
  • āœ… Cumulative Layout Shift: <0.1
  • āœ… Total Blocking Time: <300ms

Accessibility Standards

  • āœ… WCAG 2.1 Level AA compliance
  • āœ… Keyboard navigation support
  • āœ… Screen reader compatible
  • āœ… Semantic HTML structure
  • āœ… ARIA labels where needed

šŸ“Š CI/CD Pipeline

Automated Workflows

On Pull Request

1. Security Scan (CodeQL, Trivy, Semgrep)
2. Code Quality Check (ESLint, Prettier)
3. Build Verification
4. Tests
5. Preview Deployment
   → https://preview-{PR-number}.zuclubit-site.pages.dev

On Merge to Main

1. All CI Checks
2. Production Build
3. Deploy to CloudFlare Pages
   → https://zuclubit.com
   → https://www.zuclubit.com
   → https://zuclubit-site.pages.dev
4. Performance Audit (Lighthouse)

GitHub Actions Workflows

Workflow Trigger Purpose
ci.yml PR, Push to develop Build, test, quality checks
deploy.yml Merge to main Production deployment
security.yml Daily, PR, Push Security scanning
performance.yml PR to main Lighthouse audit
auto-merge.yml Dependabot PR Auto-merge minor updates

šŸ“ Project Structure

zuclubit-site/
ā”œā”€ā”€ .github/
│   ā”œā”€ā”€ workflows/           # GitHub Actions
│   ā”œā”€ā”€ ISSUE_TEMPLATE/      # Issue templates
│   ā”œā”€ā”€ PULL_REQUEST_TEMPLATE.md
│   └── CODEOWNERS           # Code ownership
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ components/          # Svelte components
│   │   └── ui/             # UI components
│   ā”œā”€ā”€ lib/                # Utility functions
│   ā”œā”€ā”€ assets/             # Static assets
│   ā”œā”€ā”€ App.svelte          # Root component
│   └── main.js             # Entry point
ā”œā”€ā”€ public/                  # Public assets
ā”œā”€ā”€ legacy/                  # Legacy scripts & docs
│   ā”œā”€ā”€ scripts/            # Manual deployment scripts
│   └── docs/               # Old documentation
ā”œā”€ā”€ .eslintrc.cjs           # ESLint configuration
ā”œā”€ā”€ .prettierrc             # Prettier configuration
ā”œā”€ā”€ .lighthouserc.json      # Lighthouse CI config
ā”œā”€ā”€ vite.config.js          # Vite configuration
ā”œā”€ā”€ wrangler.toml           # CloudFlare Pages config
ā”œā”€ā”€ GITFLOW.md              # GitFlow documentation
ā”œā”€ā”€ CONTRIBUTING.md         # Contribution guidelines
ā”œā”€ā”€ SECURITY.md             # Security policy
└── README.md               # This file

šŸ”§ Configuration Files

File Purpose
vite.config.js Vite build configuration
wrangler.toml CloudFlare Pages settings
.eslintrc.cjs ESLint rules
.prettierrc Code formatting rules
.lighthouserc.json Performance budgets
package.json Dependencies & scripts

šŸŒ Environment Variables

For local development, create a .env file:

# Not required for this project currently
# Add environment variables as needed

For production, configure in CloudFlare Pages dashboard:

  • Settings → Environment Variables

šŸ“ˆ Monitoring & Analytics

  • CloudFlare Analytics: Built-in traffic analytics
  • Web Vitals: Core Web Vitals tracking
  • Error Tracking: Planned integration
  • Uptime Monitoring: CloudFlare 99.99% SLA

šŸŽÆ Roadmap

Phase 1: Foundation āœ… (Completed)

  • Serverless architecture
  • CI/CD pipeline
  • Security scanning
  • Custom domain with HTTPS
  • GitFlow workflow

Phase 2: Enhancement šŸ”„ (In Progress)

  • Unit tests (Vitest)
  • E2E tests (Playwright)
  • Component library documentation
  • Performance monitoring
  • A/B testing framework

Phase 3: Expansion šŸ“‹ (Planned)

  • Backend API (CloudFlare Workers)
  • Database integration (D1/Durable Objects)
  • User authentication (OAuth)
  • CMS integration
  • Multi-language support

šŸ“„ License

MIT License - see LICENSE file for details

šŸ‘„ Team

šŸ“ž Support

šŸ™ Acknowledgments

  • CloudFlare Pages for serverless hosting
  • Svelte for the amazing framework
  • Vite for lightning-fast builds
  • Lucide for beautiful icons

šŸ“š Additional Documentation


Built with ā¤ļø by Zuclubit Team

Last Updated: 2025-11-09

Top categories

Loading Svelte Themes