Business-Magician

360 Business Magician: VR Business Specialist + VR Client

A comprehensive business formation platform for deaf entrepreneurs, providing tools for business development, document management, and self-employment services.

CI/CD

๐Ÿ“– Documentation & Demo

View Interactive Demo โ†’

The demo page provides an interactive overview of the platform features, including:

๐Ÿ—๏ธ Project Structure

The project is organized into a clean, modular structure:

โ”œโ”€โ”€ src/                         # Reorganized source code
โ”‚   โ”œโ”€โ”€ api/                     # API layer
โ”‚   โ”‚   โ””โ”€โ”€ v1/                  # API version 1
โ”‚   โ”‚       โ”œโ”€โ”€ routes/          # API route handlers
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ health.ts    # Health check endpoints
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ business.ts  # Business Magician endpoints
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ v4deaf.ts    # V4Deaf endpoints
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ pinksync.ts  # PinkSync endpoints
โ”‚   โ”‚       โ”‚   โ””โ”€โ”€ automation.ts # PinkFlow automation endpoints
โ”‚   โ”‚       โ””โ”€โ”€ index.ts         # API router entry point
โ”‚   โ”œโ”€โ”€ modules/                 # Feature modules
โ”‚   โ”‚   โ”œโ”€โ”€ v4deaf/              # VR4Deaf module (VR counselor integration)
โ”‚   โ”‚   โ”œโ”€โ”€ business-magician/   # Business formation & analytics
โ”‚   โ”‚   โ”œโ”€โ”€ pinksync/            # Deaf-first platform transformation
โ”‚   โ”‚   โ””โ”€โ”€ pinkflow/            # Automation & workflow orchestration
โ”‚   โ”œโ”€โ”€ shared/                  # Shared resources
โ”‚   โ”‚   โ”œโ”€โ”€ types/               # Common type definitions
โ”‚   โ”‚   โ”œโ”€โ”€ utils/               # Utility functions
โ”‚   โ”‚   โ””โ”€โ”€ config/              # Configuration management
โ”‚   โ””โ”€โ”€ index.ts                 # Main entry point
โ”œโ”€โ”€ client/                      # Frontend React application (APP)
โ”‚   โ””โ”€โ”€ src/
โ”‚       โ”œโ”€โ”€ components/          # UI components
โ”‚       โ”œโ”€โ”€ hooks/               # Custom React hooks
โ”‚       โ”œโ”€โ”€ lib/                 # Utilities and API clients
โ”‚       โ””โ”€โ”€ pages/               # Page components
โ”œโ”€โ”€ server/                      # Legacy server (being migrated)
โ”‚   โ”œโ”€โ”€ routes/                  # API routes
โ”‚   โ””โ”€โ”€ services/                # Business logic
โ””โ”€โ”€ shared/                      # Legacy shared code
    โ””โ”€โ”€ schema.ts                # Database schema definitions

๐Ÿš€ Features

๐Ÿ“ฆ Modules

Business Magician

Business formation and management services including:

V4Deaf (VR4Deaf)

VR counselor integration and accessibility services:

PinkSync

Deaf-first platform transformation:

PinkFlow

Automation and workflow orchestration:

๐Ÿ”ง Technologies

๐Ÿ“‹ Requirements

๐Ÿ Getting Started

Quick Start

  1. Clone the repository:
    git clone https://github.com/pinkycollie/Business-Magician.git
    cd Business-Magician
    
  2. Install dependencies:
    npm install
    
  3. Copy environment example and configure:
    cp .env.example .env
    # Edit .env with your configuration
    
  4. Start the development server:
    npm run dev
    
  5. Visit http://localhost:5000 to see the application.

Docker Setup

We provide a Docker Compose configuration for easy local development:

docker-compose up -d

Visit http://localhost:8080 to see the application.

๐Ÿ—„๏ธ Environment Variables

Create a .env file in the project root with the following variables:

# Database connection
DATABASE_URL=postgres://username:password@localhost:5432/business_magician

# Application settings
NODE_ENV=development
PORT=5000

๐Ÿ“‚ Project Structure

โ”œโ”€โ”€ client/                  # Frontend React application
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/      # UI components
โ”‚   โ”‚   โ”œโ”€โ”€ hooks/           # Custom React hooks
โ”‚   โ”‚   โ”œโ”€โ”€ lib/             # Utilities and API clients
โ”‚   โ”‚   โ””โ”€โ”€ pages/           # Page components
โ”œโ”€โ”€ server/                  # Backend Express application
โ”‚   โ”œโ”€โ”€ routes/              # API routes
โ”‚   โ”œโ”€โ”€ services/            # Business logic
โ”‚   โ””โ”€โ”€ index.ts             # Server entry point
โ”œโ”€โ”€ shared/                  # Shared code between client and server
โ”‚   โ””โ”€โ”€ schema.ts            # Database schema definitions
โ”œโ”€โ”€ docs/                    # GitHub Pages documentation
โ”œโ”€โ”€ scripts/                 # Utility scripts
โ””โ”€โ”€ views/                   # HTMX view templates

๐Ÿ”„ Database Management

We use Drizzle ORM for database operations. Some useful commands:

# Push schema changes to database
npm run db:push

# Generate migration files
npm run db:generate

# Open Drizzle Studio (database UI)
npm run db:studio

๐Ÿ“œ Available Scripts

Command Description
npm run dev Start development server
npm run build Build for production
npm run start Run production build
npm run typecheck Run TypeScript type checking
npm run lint Run linting
npm run db:push Push schema changes to database
npm run db:studio Open database management UI

๐Ÿงช Local Development Tips

Running Without Database

For quick frontend prototyping, you can run the demo HTML files directly:

# Open the demo page in your browser
open 360-magician-demo.html

Using the Test Server

node test-server.js

๐Ÿค Contributing

Please see CONTRIBUTING.md for guidelines on contributing to this project.

๐Ÿ“„ License

MIT License

๐Ÿ‘ฅ Team