von-ai

von AI - AI Automation Solutions Platform

A modern, conversion-optimized marketing website and lead generation platform for an AI automation consultancy. Built with React, TypeScript, Express, and Supabase.

von AI TypeScript

πŸš€ Features

Phase 2 Complete βœ…

  1. CMS Admin Panel
    • Session-based authentication
    • Rich text blog editor with live preview
    • Newsletter subscriber management
    • Contact lead tracking and management
  2. Testimonials & Social Proof
    • Client testimonials display
    • Company logos and ratings
    • Integrated on homepage and solutions page
  3. Case Studies/Portfolio
    • Filterable case studies by industry (Sales, Service, Operations)
    • Individual case study detail pages
    • Metrics visualization (ROI, time saved, accuracy)
  4. Interactive ROI Calculator
    • Real-time cost savings calculation
    • Time savings and revenue impact projections
    • Embedded on homepage and solutions page
  5. Newsletter Email Integration
    • Automated welcome emails via Resend API
    • Newsletter composer with live HTML preview
    • Bounce handling and unsubscribe management
    • Newsletter signup on contact form

πŸ› οΈ Tech Stack

Frontend:

Backend:

Email:

Development:

πŸ“¦ Installation

Prerequisites

Setup Steps

  1. Clone the repository
    git clone https://github.com/obymanyando/von-ai.git
    cd von-ai
    
  2. Install dependencies
    npm install
    
  3. Configure environment variables

    Create a .env file in the root directory:

    # Database
    DATABASE_URL=your_postgresql_connection_string
    SUPABASE_URL=your_supabase_url
    SUPABASE_ANON_KEY=your_supabase_anon_key
    
    # Session
    SESSION_SECRET=your_random_session_secret
    
    # Email (Resend)
    RESEND_API_KEY=your_resend_api_key
    
    # Admin Credentials (Fallback)
    ADMIN_USERNAME=admin
    ADMIN_PASSWORD_HASH=your_bcrypt_hash
    
  4. Set up the database
    npm run db:push
    
  5. Start the development server
    npm run dev
    

    The application will be available at http://localhost:5000

πŸ—„οΈ Database Schema

The application uses the following tables:

πŸ” Admin Access

Default Credentials:

Admin Panel Routes:

Important: Change the default credentials in production by updating the admin_users table.

πŸ“§ Email Configuration

The platform uses Resend for transactional emails:

  1. Sign up for a Resend account
  2. Verify your sending domain
  3. Generate an API key
  4. Add to .env as RESEND_API_KEY

Email Features:

🎨 Design System

The design follows a minimalist, technology-forward aesthetic inspired by Linear, Stripe, and Vercel:

πŸ“„ Project Structure

von-ai/
β”œβ”€β”€ client/               # Frontend React application
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/   # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ pages/        # Route pages
β”‚   β”‚   β”œβ”€β”€ lib/          # Utilities and configuration
β”‚   β”‚   └── hooks/        # Custom React hooks
β”œβ”€β”€ server/               # Backend Express application
β”‚   β”œβ”€β”€ index.ts          # Server entry point
β”‚   β”œβ”€β”€ routes.ts         # API routes
β”‚   β”œβ”€β”€ auth.ts           # Authentication logic
β”‚   └── email.ts          # Email service
β”œβ”€β”€ shared/               # Shared types and schemas
β”‚   └── schema.ts         # Database schema (Drizzle)
└── attached_assets/      # Static assets (images, etc.)

πŸš€ Deployment

  1. Import this repository into Replit
  2. Configure Secrets for environment variables
  3. Click β€œPublish” to deploy

Manual Deployment

  1. Build the application:
    npm run build
    
  2. Set environment variables on your hosting platform

  3. Start the production server:
    npm start
    

πŸ§ͺ Available Scripts

πŸ”’ Security Notes

πŸ“ License

This project is proprietary software for von AI.

🀝 Contributing

This is a private repository. For questions or support, contact the development team.


Built with ❀️ using Replit Agent