Skip to content

producerbryan/magic-pdx

Repository files navigation

Magic PDX - Multi-Platform E-Commerce & Event Management System

A comprehensive platform for Magic PDX combining e-commerce, event ticketing, POS, CRM, email marketing, and content management.

🚀 Quick Start

# Install dependencies npm install # Set up environment variables cp apps/api/.env.example apps/api/.env cp apps/web/.env.example apps/web/.env # Set up database (requires PostgreSQL) cd packages/database npx prisma generate npx prisma db push # Run development servers npm run dev

📁 Project Structure

magic-pdx/ ├── apps/ │ ├── web/ # Next.js frontend (port 3000) │ └── api/ # Express backend (port 3001) ├── packages/ │ ├── ui/ # Shared UI components │ ├── database/ # Prisma schema and client │ ├── types/ # Shared TypeScript types │ └── utils/ # Shared utilities 

🛠 Tech Stack

  • Frontend: Next.js 14, React, Tailwind CSS, shadcn/ui
  • Backend: Express.js, TypeScript
  • Database: PostgreSQL, Prisma ORM
  • Authentication: NextAuth.js
  • Payment: Stripe
  • Email: AWS SES
  • File Storage: AWS S3

🔧 Development

# Run all apps in development npm run dev # Build all apps npm run build # Run type checking npm run typecheck # Run linting npm run lint # Format code npm run format

📊 Database Management

cd packages/database # Generate Prisma client npm run db:generate # Push schema to database npm run db:push # Run migrations npm run db:migrate # Open Prisma Studio npm run db:studio

🌟 Core Features

  • E-Commerce: Product management, shopping cart, order processing
  • Event Ticketing: Event creation, ticket sales, QR validation
  • Summer Camps: Registration, waivers, capacity management
  • POS System: Mobile-first design, offline capability
  • CRM: Customer profiles, loyalty points, analytics
  • Email Marketing: Campaign builder, AWS SES integration
  • Content Management: Drag-and-drop page builder
  • Inventory: Stock tracking, Murphy's Magic integration
  • Social Media: Multi-platform posting, engagement tracking

🔐 Environment Variables

API (.env)

  • DATABASE_URL: PostgreSQL connection string
  • JWT_SECRET: JWT signing secret
  • STRIPE_SECRET_KEY: Stripe API key
  • AWS_ACCESS_KEY_ID: AWS credentials
  • AWS_SECRET_ACCESS_KEY: AWS credentials
  • MURPHYS_USERNAME: Murphy's Magic API username
  • MURPHYS_PASSWORD: Murphy's Magic API password

Web (.env.local)

  • NEXTAUTH_URL: Authentication callback URL
  • NEXTAUTH_SECRET: NextAuth encryption secret
  • NEXT_PUBLIC_API_URL: Backend API URL

📝 License

Private - All rights reserved

🤝 Support

For support, contact the Magic PDX development team.

About

Comprehensive multi-platform solution for Magic PDX - E-commerce, event ticketing, POS, CRM, and content management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors