Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SharePacks is a modern, interactive virtual vending machine platform for purchasing and collecting digital card shares. Built with React, TypeScript, and cutting-edge web technologies, it offers an immersive and engaging experience for collectors.

License

Notifications You must be signed in to change notification settings

Saifullah62/virtual-vending-machine

Repository files navigation

SharePacks by MyCardShares

SharePacks Vending Machine

Overview

SharePacks is a modern, interactive virtual vending machine platform for purchasing and collecting digital card shares. Built with React, TypeScript, and cutting-edge web technologies, it offers an immersive and engaging experience for collectors.

Features

๐ŸŽฎ Interactive Vending Experience

  • Realistic mechanical arm simulation with physics-based movements
  • Dynamic lighting system with ambient and spotlight effects
  • Glass morphism design elements with realistic reflections
  • Responsive animations and state transitions
  • Real-time sound effects and haptic feedback

๐Ÿ’ณ Multiple Payment Options

  • Credit/Debit card payments via Stripe
  • BSV cryptocurrency integration
  • Real-time balance tracking
  • Secure transaction processing
  • Automatic payment verification

๐ŸŽ Pack Opening Experience

  • Cinematic reveal animations
  • Particle effects and dynamic lighting
  • Custom sound effects
  • Social sharing integration
  • Achievement system

๐Ÿ“ฑ Responsive Design

  • Mobile-first approach
  • Adaptive layouts
  • Touch-friendly controls
  • Cross-browser compatibility
  • Performance optimized

Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Stripe account (for payments)
  • BSV wallet (for crypto payments)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/sharepacks.git
cd sharepacks
  1. Install dependencies:
npm install
  1. Configure environment variables:
VITE_STRIPE_PUBLIC_KEY=your_stripe_public_key
VITE_BSV_ADDRESS=your_bsv_address
MONGODB_URI=your_mongodb_uri
  1. Start the development server:
npm run dev

Usage Guide

Purchasing SharePacks

  1. Select a Pack

    • Browse available pack options
    • View pack details and pricing
    • Select your desired pack
  2. Add Funds

    • Click "Add Funds" button
    • Choose payment method (Card/BSV)
    • Complete payment process
  3. Purchase Process

    • Click "Purchase" on selected pack
    • Watch vending animation sequence
    • Receive your SharePack
  4. Card Reveal

    • Experience cinematic reveal animation
    • View your new cards
    • Share on social media
    • Track your collection

Admin Panel

  1. Accessing Admin

    • Click admin icon
    • Enter admin credentials
    • Access management features
  2. Managing Cards

    • Upload card images
    • Set card properties
    • Manage inventory
    • Track transactions
  3. Pack Configuration

    • Create new pack types
    • Set pack contents
    • Configure pricing
    • Adjust drop rates

Technical Details

Architecture

src/
โ”œโ”€โ”€ components/         # React components
โ”œโ”€โ”€ services/          # API and service layers
โ”œโ”€โ”€ store/             # State management
โ”œโ”€โ”€ hooks/             # Custom React hooks
โ”œโ”€โ”€ effects/           # Animation effects
โ”œโ”€โ”€ utils/            # Utility functions
โ””โ”€โ”€ types/            # TypeScript definitions

Key Technologies

  • Frontend

    • React 18
    • TypeScript
    • Framer Motion
    • Tailwind CSS
    • Stripe Elements
  • State Management

    • Zustand
    • React Query
  • Animations

    • Framer Motion
    • React Spring
    • Three.js
  • Payments

    • Stripe API
    • BSV Integration

Performance Optimizations

  • Code splitting
  • Lazy loading
  • Asset optimization
  • Caching strategies
  • Preload animations
  • Debounced actions

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

Development Guidelines

  • Follow TypeScript best practices
  • Maintain consistent code style
  • Write unit tests
  • Document new features
  • Optimize for performance

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Acknowledgments


Built with โค๏ธ by MyCardShares Team

About

SharePacks is a modern, interactive virtual vending machine platform for purchasing and collecting digital card shares. Built with React, TypeScript, and cutting-edge web technologies, it offers an immersive and engaging experience for collectors.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published