Skip to content

Spinx Casino Game Backend for Crash, Mine, Jackpot, Chat and Bot System

Notifications You must be signed in to change notification settings

blurrer/SpinX-Game-Backend-System

Repository files navigation

Features

  • 🔐 Wallet Authentication: Automatic sign up/sign in with Solana wallet connection
  • 🏷️ Unique Username Generation: Auto-generated unique usernames for new users
  • 💬 Real-time Chat: WebSocket-powered chat with game-specific rooms
  • 🎲 Betting System: Complete betting management with statistics
  • 👤 User Profiles: Avatar upload, profile management, and statistics
  • 📊 Analytics: Comprehensive betting statistics and user analytics
  • 🔒 Security: JWT tokens, rate limiting, and input validation

Tech Stack

  • Runtime: Node.js
  • Framework: Express.js
  • Database: MongoDB with Mongoose
  • Real-time: Socket.IO
  • Authentication: JWT + Wallet signatures
  • File Upload: Multer + Cloudinary
  • Validation: Express-validator
  • Security: Helmet, CORS, Rate limiting

Prerequisites

  • Node.js (v16 or higher)

  • MongoDB (local or cloud)

    Rate Limiting

    RATE_LIMIT_WINDOW_MS=900000 RATE_LIMIT_MAX_REQUESTS=100

    WebSocket Configuration

    WS_HEARTBEAT_INTERVAL=25000 WS_HEARTBEAT_TIMEOUT=60000

    
    

Start the server

# Development
npm run dev

# Production
npm start

License

MIT License - see LICENSE file for details.

Support

For support and questions, please open an issue on GitHub.

About

Spinx Casino Game Backend for Crash, Mine, Jackpot, Chat and Bot System

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages