I am 100% owner of the code, all rights reserved
Backend:
Frontend:
Deploy:
The website is deployed on a AWS instance (ubuntu) on a proxy server (Nginx) at https://kamil-banaszek.pl (demo verison but functional)
- Betting a maximum of 2 bets in one round by each player.
- Logging in through Steam using passport
- Players chat (error messages, chatban)
- Drawing history.
- Updating users balances and database updates
- The use of socket.io technology enabling real-time communication.
- Players profile ( betting history)
- ranks (admin,mod,user)
- chat command for admin (/mute /unmute /coins) + nick
- user sessions in JWT token
- admin panel
- notifications
- responsive (basic)
Install script:
npm install
npm run buildStart script:
npm startU can check every round id result, use e.g. https://www.programiz.com/javascript/online-compiler/ to run below code
const crypto = require('crypto');
const serverSeed = "PageShouldGenerateNewEverySomeTimeLikePulicSeed";
const publicSeed = "123";
const round = "0";
const hashInput = serverSeed + "-" + publicSeed + "-" + round;
const hash = crypto.createHash('sha256').update(hashInput).digest('hex');
const roll = parseInt(hash.substr(0, 8), 16) % 15;
let rollColour;
if (roll === 0) {
rollColour = 'bonus';
} else if (roll >= 1 && roll <= 7) {
rollColour = 'orange';
} else if (roll >= 8 && roll <= 14) {
rollColour = 'black';
}
console.log(roll);
Seeds are made available by public websites every 24 hours (then they are replaced with new ones), then by providing the data you can check the result of each draw, all using sha256 hashing, which is used in by banks and cryptocurrency exchanges
Page earnings looks like:
red 7/15 - chances 46,66% paycheck 2x so page profit is 100% - (46,66%*2) = 6,68 % of all bets
black 7/15 - chances 46,66% paycheck 2x so page profit is 100% - (46,66%*2) = 6,68 % of all bets
green 1/15 - chances 6,66% paycheck 14x so page profit is 100% - (6,66%*14) = 6,76 % of all bets
You have to subtract rewards or affiliates from your earnings, but it's still
a huge profit bringing in tens of thousands of dollars a dayI want to focus on other projects now, so I'm leaving this one, but it can be expanded, e.g. by:
- deposit/withdraw
- support
- affiliates
- small code changes to make it more efficient (removing redundancy)
- better css ( i dont have time to make it perfect )
Maybe I'll add it in some time





