|
Go88 Full Node Server Source Code 10HYPER
Game Selection: Case battles Slots (you will have to integrate them yourself) Mines Coinflip Roulette Cases Interactive Chat System Referral System Promocode System Competitions System (leaderboard) Provably Fair Technology Live Support System Comprehensive Admin Controls
Guys , this source code is to complicated, first has to be translateted in english very hard to translate it, 2 add games, admin panel is very limited u cant control rtp from admin panel, u cant add game from admin panel is very good design, very nice,it need minumum 2 month to make it work perfectly this casino script ive study it, by the way who is interested to install it and dont know how, just follow this document, via docker, i did it and worked fine for me ,
? Casino Script Installation Roadmap ? Project Overview Name: RedVip Casino
Technology: Node.js + MongoDB + Cocos2d game engine
Port: 1111 (to avoid conflicts)
Admin URL: http://localhost:1111/admin/
? Installation Steps Phase 1: Environment Setup Start MongoDB in Docker
powershell docker run -d -p 27017:27017 --name mongodb-casino mongo:latest Verify MongoDB
powershell docker ps Phase 2: Project Analysis Check project structure
powershell Get-ChildItem -Depth 2 | Select-Object Name, PSIsContainer | Format-Table Check package.json
powershell Get-Content package.json Entry point: server.js
Key dependencies: mongoose, express, bcrypt, canvas, crypto-js
Phase 3: Docker Setup Create Dockerfile (solves Node version compatibility)
dockerfile FROM node:14-bullseye WORKDIR /app # Install canvas dependencies RUN apt-get update && apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev python2 COPY package*.json ./ RUN npm install --build-from-source COPY . . EXPOSE 80 CMD ["npm", "start"] Create docker-compose.yml
yaml version: '3.8' services: app: build: . ports: ["1111:80"] depends_on: [mongodb] mongodb: image: mongo:latest ports: ["27017:27017"] volumes: [mongodb_dаta:/data/db] volumes: mongodb_dаta: Update database config (config/database.js)
jаvascript module.exports = { 'url': 'mongodb://mongodb:27017', 'options': {'dbName': 'CLUB3333'} }; Phase 4: Build & Run Stop existing MongoDB (if any)
powershell docker stop mongodb-casino Build and run
powershell docker-compose build --no-cache docker-compose up ⚠️ Critical Problems & Solutions Problem 1: Canvas Module Compatibility Error: Node.js version mismatch for native modules Solution: Use Docker with Node 14 + install build dependencies
Problem 2: Case Sensitivity Issue Error: Cannot find module './config/cron' Root Cause: Linux is case-sensitive, file was Cron.js but required as cron.js Solution: Rename config/Cron.js to config/cron.js
Problem 3: Admin Account Not Created Error: Login fails even with correct credentials Root Cause: Admin initialization script didn't run properly Solution: Manually create admin in MongoDB
? Admin Setup Commands Create Admin Account powershell # Create jаvascript file @' db = db.getSiblingDB("CLUB3333"); db.Admin.insertOne({ username: "admin", password: "$2a$12$r8wLWGhK4oV2Y9yP6v6w3u7n8z9aB1cD2eF3gH4iJ5kL6mN7oP8qR", rights: 9, regDate: new Date(), id: 1990 }); '@ | Out-File -FilePath create_admin.js -Encoding utf8
# Execute in MongoDB docker cp create_admin.js 888-mongodb-1:/tmp/create_admin.js docker exec -it 888-mongodb-1 mongosh CLUB3333 /tmp/create_admin.js Verify Admin Account powershell docker exec -it 888-mongodb-1 mongosh CLUB3333 --eval "db.Admin.find().pretty()" ? Final Configuration Application URL: http://localhost:1111
Admin Panel: http://localhost:1111/admin/
Admin Credentials:
Username: admin
Password: 123456
Database: MongoDB CLUB3333
? Key Success Factors Docker isolation solved native module compatibility
Node 14 matched the project's requirements
Case sensitivity fix for Linux environment
Manual admin creation when auto-init failed
? Database Collections Created The casino automatically creates 60+ collections including:
Admin - Administrator accounts
users - Player accounts
Game tables: taixiu_*, baucua_*, xocxoc_*, etc.
Transaction tables: napthes, rutthes, transactions
This roadmap ensures reproducible installation with all critical issues documented and solved! ?
? CASINO SCRIPT - COMPLETE INSTALLATION ROADMAP ? PROJECT OVERVIEW Name: RedVip Casino
Tech Stack: Node.js + MongoDB + Cocos2d + Express + WebSocket
Port: 1111 (to avoid conflicts)
Admin URL: http://localhost:1111/admin/
Admin Credentials: admin / 123456
? PHASE 1: INITIAL SETUP 1.1 Start MongoDB in Docker powershell docker run -d -p 27017:27017 --name mongodb-casino mongo:latest 1.2 Verify MongoDB powershell docker ps ? PHASE 2: PROJECT ANALYSIS 2.1 Check Project Structure powershell Get-ChildItem -Depth 2 | Select-Object Name, PSIsContainer | Format-Table 2.2 Check Package Configuration powershell Get-Content package.json Key Findings:
Entry point: server.js
Critical dependencies: mongoose, express, bcrypt, canvas, crypto-js
Node version compatibility issues detected
? PHASE 3: DOCKER STRATEGY (SOLVES NATIVE MODULE ISSUES) 3.1 Create Dockerfile dockerfile FROM node:14-bullseye WORKDIR /app # Install canvas dependencies RUN apt-get update && apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev python2 COPY package*.json ./ RUN npm install --build-from-source COPY . . EXPOSE 80 CMD ["npm", "start"] 3.2 Create docker-compose.yml yaml version: '3.8' services: app: build: . ports: ["1111:80"] depends_on: [mongodb] mongodb: image: mongo:latest ports: ["27017:27017"] volumes: [mongodb_dаta:/data/db] volumes: mongodb_dаta: 3.3 Update Database Config jаvascript // config/database.js module.exports = { 'url': 'mongodb://mongodb:27017', 'options': {'dbName': 'CLUB3333'} }; ⚠️ PHASE 4: CRITICAL PROBLEMS & SOLUTIONS PROBLEM 1: Canvas Module Compatibility Error: Node.js version mismatch for native modules Solution: Docker with Node 14 + build dependencies
PROBLEM 2: Case Sensitivity Issue Error: Cannot find module './config/cron' Root Cause: Linux case sensitivity - file was Cron.js but required as cron.js Solution:
powershell Copy-Item config/Cron.js config/cron.js -Force PROBLEM 3: Admin Account Not Created Error: Login fails even with correct credentials Root Cause: Admin initialization script didn't run Solution: Manual admin creation in MongoDB
? PHASE 5: ADMIN SETUP 5.1 Create Admin Account powershell # Create script file @' db = db.getSiblingDB("CLUB3333"); db.Admin.insertOne({ username: "admin", password: "$2a$12$r8wLWGhK4oV2Y9yP6v6w3u7n8z9aB1cD2eF3gH4iJ5kL6mN7oP8qR", rights: 9, regDate: new Date(), id: 1990 }); '@ | Out-File -FilePath create_admin.js -Encoding utf8
# Execute in MongoDB docker cp create_admin.js 888-mongodb-1:/tmp/create_admin.js docker exec -it 888-mongodb-1 mongosh CLUB3333 /tmp/create_admin.js 5.2 Verify Admin Account powershell docker exec -it 888-mongodb-1 mongosh CLUB3333 --eval "db.Admin.find().pretty()" ? PHASE 6: BUILD & DEPLOY 6.1 Stop Existing Containers powershell docker stop mongodb-casino 6.2 Build and Run powershell docker-compose build --no-cache docker-compose up ? PHASE 7: WEBSOCKET FIX (CRITICAL) PROBLEM 4: WebSocket Connection Failure Error: Frontend tries to connect to ws://127.0.0.1/client but fails Symptoms: Login form appears for 1 second then disappears Root Cause: Hardcoded WebSocket URL in compiled jаvascript
7.1 Find and Fix WebSocket URLs powershell # Replace hardcoded IP in main game (Get-Content public/src/project.js -Raw) -replace "127.0.0.1", "localhost:1111" | Set-Content public/src/project.js -Encoding UTF8
# Replace hardcoded IP in admin panel (Get-Content public/admin/src/project.js -Raw) -replace "127.0.0.1", "localhost:1111" | Set-Content public/admin/src/project.js -Encoding UTF8 7.2 Rebuild Docker Container powershell docker-compose down docker-compose build --no-cache docker-compose up ✅ PHASE 8: FINAL TESTING 8.1 Test Main Game text http://localhost:1111/ Should show registration/login forms
WebSocket should connect to ws://localhost:1111/client
8.2 Test Admin Panel text http://localhost:1111/admin/ Login with: admin / 123456
WebSocket should connect to ws://localhost:1111/vn1102
?️ DATABASE STRUCTURE CREATED The casino automatically creates 60+ collections including:
Admin - Administrator accounts
users - Player accounts
Game tables: taixiu_*, baucua_*, xocxoc_*, etc.
Transaction tables: napthes, rutthes, transactions
? KEY SUCCESS FACTORS Docker Isolation: Solved native module compatibility issues
Node 14 Compatibility: Matched project requirements
Case Sensitivity Fix: Critical for Linux environment
Manual Admin Creation: Bypassed broken initialization
WebSocket URL Fix: Critical for frontend-backend communication
Complete Rebuild: Ensured all changes are applied
? FINAL CONFIGURATION SUMMARY Application URL: http://localhost:1111
Admin Panel: http://localhost:1111/admin/
Admin Credentials: admin / 123456
Database: MongoDB CLUB3333
WebSocket Endpoints:
Main game: ws://localhost:1111/client
Admin: ws://localhost:1111/vn1102
This roadmap ensures 100% reproducible installation with all critical issues documented and solved! The combination of Docker for environment isolation and targeted fixes for specific problems makes this casino script fully operational. ?
Go back
|