Skip to content

incial/Blaupunkt

Repository files navigation

πŸš— Blaupunkt EV Systems - Official Website

Modern, responsive website for Blaupunkt EV charging solutions built with React, Vite, and Tailwind CSS.

Live Site: https://blaupunkt-ev.com


πŸ“‹ Table of Contents


πŸ“ Project Structure

blaupunkt/
β”œβ”€β”€ πŸ“„ README.md                    # Project overview
β”œβ”€β”€ πŸ“„ package.json                 # Dependencies & scripts
β”œβ”€β”€ πŸ“„ vite.config.js              # Vite configuration
β”œβ”€β”€ πŸ“„ tailwind.config.js          # Tailwind CSS configuration
β”œβ”€β”€ πŸ“„ .env.example                # Environment variables template
β”‚
β”œβ”€β”€ πŸ“ .github/workflows/          # GitHub Actions
β”‚   └── deploy.yml                 # Auto-deployment to Hostinger
β”‚
β”œβ”€β”€ πŸ“ src/                        # Frontend source code
β”‚   β”œβ”€β”€ πŸ“ Components/             # React components
β”‚   β”‚   β”œβ”€β”€ πŸ“ Common/            # Reusable components (Navbar, Footer, etc.)
β”‚   β”‚   β”œβ”€β”€ πŸ“ CommonPages/       # Shared page components
β”‚   β”‚   β”œβ”€β”€ πŸ“ Products/          # Product listing components
β”‚   β”‚   β”œβ”€β”€ πŸ“ Admin/             # Admin panel components
β”‚   β”‚   └── πŸ“ Loading/           # Loading states
β”‚   β”‚
β”‚   β”œβ”€β”€ πŸ“ Pages/                 # Page components (routes)
β”‚   β”œβ”€β”€ πŸ“ Data/                  # Product data & configurations
β”‚   β”œβ”€β”€ πŸ“ assets/                # Static assets (images, PDFs, videos)
β”‚   β”œβ”€β”€ πŸ“ config/                # Configuration files
β”‚   β”œβ”€β”€ πŸ“ hooks/                 # Custom React hooks
β”‚   β”œβ”€β”€ πŸ“ lib/                   # Utility libraries
β”‚   └── πŸ“ utils/                 # Utility functions
β”‚
β”œβ”€β”€ πŸ“ public/                     # Static files & backend
β”‚   β”œβ”€β”€ πŸ“ api/                   # PHP backend
β”‚   β”‚   β”œβ”€β”€ contact.php           # Contact form handler
β”‚   β”‚   └── mail.Html             # Email template
β”‚   └── .htaccess                 # Apache rewrite rules
β”‚
└── πŸ“ docs/                       # Documentation
    β”œβ”€β”€ SETUP_COMPLETE.md          # Quick start guide
    └── DEPLOYMENT.md              # Deployment documentation

πŸ› οΈ Tech Stack

Frontend

  • Framework: React 19
  • Build Tool: Vite 6
  • Styling: Tailwind CSS 4
  • Routing: React Router 7
  • Icons: Lucide React

Backend

  • Language: PHP 8.x
  • Email: Hostinger mail() function
  • Server: Apache (Hostinger)

Deployment

  • Hosting: Hostinger
  • CI/CD: GitHub Actions
  • Method: FTP Deploy

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Git
  • GitHub account (for automated deployment)

Local Development

  1. Clone the repository

    git clone https://github.com/AbinVarghexe/Blaupunkt.git
    cd Blaupunkt
  2. Install dependencies

    npm install
  3. Start development server

    npm run dev
  4. Open browser

    http://localhost:5173
    

Available Scripts

npm run dev        # Start development server
npm run build      # Build for production
npm run preview    # Preview production build
npm run lint       # Lint code with ESLint

🌐 Deployment

Automated Deployment (GitHub Actions)

The project uses GitHub Actions for automatic deployment to Hostinger using SSH (secure & fast).

Quick Setup:

Option 1: Automated Script (Recommended)

# Windows PowerShell
.\scripts\setup-ssh-deployment.ps1

# Mac/Linux
chmod +x scripts/setup-ssh-deployment.sh
./scripts/setup-ssh-deployment.sh

Option 2: Manual Setup

  1. Generate SSH Key

    ssh-keygen -t ed25519 -C "github-actions" -f ~/.ssh/hostinger_deploy
  2. Add Public Key to Hostinger

    • Log in to Hostinger hPanel
    • Go to Advanced β†’ SSH Access
    • Add your public key (~/.ssh/hostinger_deploy.pub)
  3. Add GitHub Secrets (Settings β†’ Secrets β†’ Actions):

    SSH_PRIVATE_KEY = (content of ~/.ssh/hostinger_deploy)
    SSH_HOST = ssh.yourdomain.com
    SSH_USERNAME = your_hostinger_username
    SSH_PORT = 65002
    SSH_TARGET_DIR = /home/username/public_html
    
  4. Push to GitHub

    git add .
    git commit -m "Initial commit"
    git push origin main
  5. Automatic Deployment

    • GitHub Actions builds your React app
    • Deploys to Hostinger via SSH (secure & efficient!)
    • Site is live! πŸŽ‰

Full deployment guides:


πŸ“§ Contact Form Setup

The contact form uses a PHP backend hosted on Hostinger.

How It Works:

User fills form β†’ React frontend β†’ POST to /api/contact.php β†’ 
PHP validates & sends email β†’ info@blaupunkt-ev.com

Email Template Features:

  • βœ… Modern black & white design with light blue accents
  • βœ… Mobile-responsive
  • βœ… HTML formatted
  • βœ… Auto-reply-to customer email

Configuration:

Edit public/api/contact.php:

$to = 'info@blaupunkt-ev.com';  // Your email
$from = 'noreply@blaupunkt-ev.com';  // Sender email

Note: Ensure noreply@blaupunkt-ev.com is created in Hostinger Email.


πŸ“– Documentation

πŸ“š Complete Documentation - Comprehensive guide to all documentation

Quick Links

πŸš€ Getting Started

🌐 Deployment

πŸ“§ Email Configuration

πŸ§ͺ Testing

Features

  • Modern UI/UX - Clean, minimal design
  • Responsive - Works on all devices
  • Fast - Optimized with Vite
  • SEO Friendly - Meta tags & sitemap
  • Contact Form - Microsoft Graph API email integration with OAuth 2.0
  • Auto Deploy - GitHub Actions CI/CD

πŸ”§ Configuration

Environment Variables

Create .env.local for local development:

VITE_API_URL=http://localhost:5173/api  # Local API endpoint

Production uses /api (same domain).

Hostinger Configuration

Required Email Account:

  • Email: noreply@blaupunkt-ev.com
  • Used by: PHP mail() function
  • Setup: Hostinger hPanel β†’ Email

Apache .htaccess:

  • Handles React Router
  • Routes API requests to PHP
  • Enables compression & caching

🚦 Project Status

  • βœ… Frontend: Complete
  • βœ… Backend: Complete (PHP)
  • βœ… Email System: Complete
  • βœ… Deployment: Automated (GitHub Actions)
  • βœ… Mobile Responsive: Yes
  • βœ… Production Ready: Yes

πŸ“ž Contact & Support

Website: https://blaupunkt-ev.com
Email: info@blaupunkt-ev.com
Repository: GitHub - Blaupunkt

Support Channels:

  • GitHub Issues: For bugs and feature requests
  • Email: For general inquiries

πŸ“„ License

This project is proprietary and confidential.
Β© 2025 Blaupunkt EV Systems. All rights reserved.


πŸ™ Acknowledgments

  • React Team - For the amazing framework
  • Vite - Lightning-fast build tool
  • Tailwind CSS - Utility-first CSS framework
  • Hostinger - Reliable hosting platform

Version 2.0.0 | Last Updated: October 31, 2025

Changelog:

  • Migrated from Node.js backend to PHP
  • Simplified deployment with GitHub Actions
  • Optimized email templates for mobile
  • All-in-one Hostinger hosting solution

About

Blaupunkt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors