Bitcoin Forum
May 13, 2024, 02:57:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 3 [All]
  Print  
Author Topic: Dice Game/Faucet Open Sourced On GITHUB  (Read 7735 times)
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 13, 2015, 02:30:28 AM
Last edit: March 23, 2015, 06:16:55 AM by gamblebuilder
 #1

I am developing an open source dice game/faucet and host it on github.  

https://github.com/popmanhe/node_dice

I just start it and so it only has some basic functionality.  
I will work on that from time to time and add more features. If you have any ideas to add to it, let me know or just fork it.

********* Tech spec **********
Demo site: http://ccroll.com/   Y

ou can support this project by clicking ads. Or deposit small amount BTC to the address when you play.  Grin

The site is built on
  • Backend: node.js + socket.io + mongodb + handlebars.js(template)
  • Frontend: bootstrap + jquery + knockout.js

 Session uses mongodb as session store, so the site can be expanded to multiple servers.

 Before you run this site, please set up connection to mongodb in config/developement.js or production.js.

  • 2015-02-24:  First commit; Basic features added.
  • 2015-03-11:  Add chat functionality. Chat messages can be saved to database and kept for a week(using mongodb TTL index).
  • 2015-03-18:  Get bitcoin address from Blockchain.info and can be saved to user account.
  • 2015-03-21:  Will update balance for deposit every 30 seconds once BTC address is generated;
                 User name has to be unique(unique index in place);
  • 2015-03-22:  Bitcoin faucet implemented. Use google reCaptcha to verify user is not rebot.
                     Amount of faucet and interval can be adjusted in config file.


If you have any questions, contact me at: popman.he@gmail.com.

I am also open for coding jobs. I have 15+ years of design/coding experience.

My tech stacks include asp.net, c#, vb.net, node.js,  html, javascript, sql server, oracle, mongodb, redis.

The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
anshar
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


View Profile
March 13, 2015, 03:22:49 AM
 #2

The demo site doesn't even work...
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 13, 2015, 05:41:32 AM
 #3

The demo site is hosted on a free server. So the server may be slow or unstable sometime.


You can download the code and run it on your local machine.

TriggerX
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
March 13, 2015, 05:44:05 AM
 #4

I own a faucet and want to try implementing this on my website. Since I'm not that tech savvy can you walk me through a step by step process?

Hi!
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 13, 2015, 06:19:17 AM
 #5

I own a faucet and want to try implementing this on my website. Since I'm not that tech savvy can you walk me through a step by step process?

The project is far from completed. It's only a demo.
Probably you can just play with it on the demo site first.

It's not hard for tech people to install it and run it, maybe within 5 minutes.

But for non-tech people, there are many steps to go and you may make mistakes on any one of them.
Please ask a tech people to help you install it.
Here is the brief steps:

1. install node.js from nodejs.org. see https://docs.npmjs.com/getting-started/installing-node
2. install mongodb from https://www.mongodb.org/downloads;
3. download code from github
4. type "npm i" under the folder to install necessory modules.
5. modify config file in config folder to connect to mongodb.
5. type "node app" to run it.
6. open browser: http://localhost:3000 to see the site.

zetaray
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


View Profile
March 13, 2015, 06:26:52 AM
 #6

Opensource dice site is what the community needs. Coders can join forces and develope a fair and secure dice site. Way to go OP.

.CryptoTotal.com.
                              l█████████▇▀
                              ████████▇▀
                              ███████▇▀
                              ██████▇▀
                              █████▇▀
                              ████▇▀
                              ███▇▀
                              ██▇▀
                              █▇▀
                              ▇▀
▇▇
▇▇

Express.Crypto.Checkout
Accepts Multiple Cryptos
Worldwide Shipping
yogg
Legendary
*
Offline Offline

Activity: 2464
Merit: 3158



View Profile WWW
March 13, 2015, 06:31:22 AM
 #7

Opensource dice site is what the community needs. Coders can join forces and develope a fair and secure dice site. Way to go OP.

I agree.

Your project is really interesting. I'll be following that closely.
I can help with the beta testing. Afterwards, I may host it at altdice.net in a production environment.
deeprocks
Member
**
Offline Offline

Activity: 87
Merit: 10


View Profile
March 13, 2015, 06:37:46 AM
 #8

Can someone please check for backdoors?
I really want to use this script for making a dice site

deeprocks
Member
**
Offline Offline

Activity: 87
Merit: 10


View Profile
March 13, 2015, 06:39:18 AM
 #9

Can you add an invest feature in the script? By this gamblers would be able to invest in the bankroll

yogg
Legendary
*
Offline Offline

Activity: 2464
Merit: 3158



View Profile WWW
March 13, 2015, 06:40:14 AM
 #10

Can someone please check for backdoors?
I really want to use this script for making a dice site

I think you better wait for a more complete version. The demo is barely working.
If you can't check for backdoors yourself, I'm pretty sure you'll have troubles running that script.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 13, 2015, 06:46:15 AM
 #11

Can someone please check for backdoors?
I really want to use this script for making a dice site

I think you better wait for a more complete version. The demo is barely working.
If you can't check for backdoors yourself, I'm pretty sure you'll have troubles running that script.

The dice/auto roll and chat are working.

But there are still many work to do. So anyone is welcome to join me. Fork the project Smiley

TriggerX
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
March 13, 2015, 07:32:24 AM
 #12

I own a faucet and want to try implementing this on my website. Since I'm not that tech savvy can you walk me through a step by step process?

The project is far from completed. It's only a demo.
Probably you can just play with it on the demo site first.

It's not hard for tech people to install it and run it, maybe within 5 minutes.

But for non-tech people, there are many steps to go and you may make mistakes on any one of them.
Please ask a tech people to help you install it.
Here is the brief steps:

1. install node.js from nodejs.org. see https://docs.npmjs.com/getting-started/installing-node
2. install mongodb from https://www.mongodb.org/downloads;
3. download code from github
4. type "npm i" under the folder to install necessory modules.
5. modify config file in config folder to connect to mongodb.
5. type "node app" to run it.
6. open browser: http://localhost:3000 to see the site.

I understood the process but am already confused by reading parts 3 and above. I will wait until other users have installed it and ask for their opinion. If they have a good feedback I will try to install it. Thanks!

Hi!
sbankerdemon
Full Member
***
Offline Offline

Activity: 168
Merit: 100


http://pachinko.games-bit.com/


View Profile
March 13, 2015, 07:42:21 AM
 #13

Good work bro. I will contact you in future for some coding work. Smiley Smiley

elm
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000


View Profile
March 13, 2015, 07:38:55 PM
 #14

following with interest
franckuestein
Legendary
*
Offline Offline

Activity: 1960
Merit: 1130


Truth will out!


View Profile WWW
March 13, 2015, 08:01:47 PM
 #15

The demo site it's working "fine" for me…  Cheesy

It's interesting to know that there are open-source dice games on github. Personally, I think that's very difficult to earn on this kind of sites, but I appreciate the idea of making it open-source.  Wink

[ AVAILABLE SIGNATURE SPACE ]
RocketSingh
Legendary
*
Offline Offline

Activity: 1662
Merit: 1050


View Profile
March 13, 2015, 08:23:29 PM
 #16

The demo site is hosted on a free server. So the server may be slow or unstable sometime.


You can download the code and run it on your local machine.

May I know which free server is supporting node.js + socket.io + mongodb + handlebars.js ? As u r saying that it is a free server, I assume it is on a shared hosting platform... am I wrong ?

gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 14, 2015, 03:57:41 AM
Last edit: March 14, 2015, 08:48:36 AM by gamblebuilder
 #17

The demo site is hosted on a free server. So the server may be slow or unstable sometime.


You can download the code and run it on your local machine.

May I know which free server is supporting node.js + socket.io + mongodb + handlebars.js ? As u r saying that it is a free server, I assume it is on a shared hosting platform... am I wrong ?

It's an amazon's free tier server.
You can install anything on it.

anshar
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


View Profile
March 14, 2015, 04:03:09 AM
 #18

Why not open a site with the stuff you got? It looks great by the way!
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 14, 2015, 08:49:48 AM
 #19

Why not open a site with the stuff you got? It looks great by the way!

Running a site like it requires a lot of energy. I am just a tech guy.

If anyone wants to run it, feel free to use the script.  Grin

dukeneptun
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile
March 14, 2015, 12:35:57 PM
 #20

I will try this. How long time did you invest in development?
I want to make my own game,but if will take alot of time .  Tongue
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 14, 2015, 02:10:12 PM
 #21

I will try this. How long time did you invest in development?
I want to make my own game,but if will take alot of time .  Tongue

So far, a couple of weeks. But there are still lots of work needed to be done.

velesgs
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
March 14, 2015, 02:16:30 PM
 #22

Good script, I will follow the development.
velesgs
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
March 14, 2015, 02:37:19 PM
 #23

I own a faucet and want to try implementing this on my website. Since I'm not that tech savvy can you walk me through a step by step process?

The project is far from completed. It's only a demo.
Probably you can just play with it on the demo site first.

It's not hard for tech people to install it and run it, maybe within 5 minutes.

But for non-tech people, there are many steps to go and you may make mistakes on any one of them.
Please ask a tech people to help you install it.
Here is the brief steps:

1. install node.js from nodejs.org. see https://docs.npmjs.com/getting-started/installing-node
2. install mongodb from https://www.mongodb.org/downloads;
3. download code from github
4. type "npm i" under the folder to install necessory modules.
5. modify config file in config folder to connect to mongodb.
5. type "node app" to run it.
6. open browser: http://localhost:3000 to see the site.

failed to install. it is not clear what and where to put it, and where to upload your files from the repository, I would like to test
Bit_Happy
Legendary
*
Offline Offline

Activity: 2100
Merit: 1040


A Great Time to Start Something!


View Profile
March 14, 2015, 10:30:54 PM
 #24

I am developing an open source dice game and host it on github.

https://github.com/popmanhe/node_dice

I just start it and so it only has some basic functionality. 
I will work on that from time to time and add more features. If you have any ideas to add to it, let me know or just fork it.

Demo site: http://52.11.70.134/

********* Tech spec **********
The site is built on

Backend: node.js + socket.io + mongodb + handlebars.js(template)
Frontend: bootstrap + jquery + knockout.js

Session uses mongodb as session store, so the site can be expanded to multiple servers.

If you download code and run this site, please set up connection to mongodb in config/developement.js or production.js.

2015-02-24: First commit; Basic features added.
2015-03-11: Add chat functionality. Chat messages can be saved to database and kept for a week(using mongodb TTL index).

I am also open for coding jobs. I have 15+ years of design/coding experience.

My tech stacks include asp.net, c#, vb.net, node.js, html, javascript, sql server, oracle, mongodb, redis.

Thank you for making this, and it will be interesting to see it grow.  Smiley

Small
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


Grow SMALL amount of BTC by earning it


View Profile
March 15, 2015, 02:38:19 AM
 #25

So how do you integrate this with the daemon?


  ╓▄▄    ,,,╓╓,,                     ,   ▄██▌`        ,╓▄▄▄▄▄▄╓  ╓▄▄               ,▄████@             ╙▀██▀░██W▐██
  ▀█████████▀██████@░                ▀█████▀       ╓▄█████▀▀▀██████▀               `▀███▀                ▓▌ `█▀██▒█
   ▒███████░  ╙██████          ▄╖     ████▌  ╓▄▄ ▄██████▌     ╙███▌       ╓▄,       ╓╖      ,,,   ,╓     ▐▀  █`▀▌░█
    ▐██████`   ▐█████`     ,╓▄███▓α ▄██████████Ñ▄██████▌       ▓██▌     ,▄████▄▄,   ███╖    █████▄████▄▄╖
    ]██████╢╖  ▓████▀   ▓████▀████▌ ▀█████████▌ ███████▌       ▐██▌ ╥█████▀▀█████▌╫██████[▐███████▀█████▌
    ]█████▌▐██████▀▒    ▐████▌ ▀███▌ ]█████ ```]███████▌       └▀▀╩ ▒▐███▌  ]████  ▐█████`╙╜█████   ████▌
    ]██████╜╙▀██████▄c  ]████▓▒▄███▀╩]█████    ████████▌        ,,  `▐███▌   ████  ]█████   ▐████▌  ████▌
    ▐██████   `▀██████▄▒]███████▀`   ]█████    ▐███████▌       ▐██   ▐████   ████L  █████   ▐████▌  ████▌
    ▐██████     ███████ ╫█████▒  ▄▄p ]█████     ███████▌       ███   ▐████   ▓███U  █████U  ▐████▌  ████▌
     ▓██████p    ██████▌░▓██████▄▄██Ü ▐█████▄▄╖  ▐███████      ▐███   ▐█████▄.████µ ▐█████▄, █████▄ ,█████▄
  ╓▄████████, ,███████ `▀████████▀   ▀███████▌   ╙██████▄    ▄████▒  ╙███████▀▀▀▀▓▓██████╜ ╚██████ ▀█████▀
▐█████████████████▀▀      ▐▀████▌      ╙▀████     `▀███████████████    ╙▀███▌     `╙▀▀██▌   └▀██▌    ▀██
└▀▀                        `   ╙                       '`╙╙╙`   ▐███▄▄
                                                                ╙████▀
  Highest BTC Payouts in the World!
Truly a one-stop casino for any player| 301% Deposit Bonus
Slots
          ██▄,   ▄███████████▄
         █████▌ ███████▀███████
           ▀██▌ ███▀  ,╓,  ▀███
       ██   ██▌ ███   ███   ███
          ▄███▌ ████▄     ▄████
      ▄▄▄  ▀██▌ ███▀  ▄▄▄  ▀███
     ▀███   ██▌ ██▌  ▐███▌  ▐██
   ╓       ▄██▌ ███▄       ▄███
  ▄███████████▀ ███████████████
  ▀▀▀▀▀▀▀▀▀▀▀    ▀▀▀▀▀▀▀▀▀▀▀▀
Casino              ▄▄▄█▀▀█.     
           ███▄▄▄    █     
                 █   ▐▌   
                 █    █   
         ╓,      █     █   
        ▐█,▄,    ██▄   ▐▌ 
        █████▌   ███▌   █µ
       ██████▀   ███▀    █
       ████▀     █     ▓Æ▐▌
         ▀     , █      ▀ █
               ▀ █  ,▄▄Æ▀▀▀
               ▀ █▀▀`     
    ▀▀▀▀▀▀▀▀▀▀▀▀▀
Sports        "▀▀▀▄▄,     
       ,     ▐██▄   
      ╒██▀▀▀▀▀████▄ 
      ██       ▀███▌
     ▐█▄        █▀▀█µ
       ▐█      ▄▀  ]▌
         ███████   j▌
        ▐███████   █
   ,,╓▄▄█████████▄▄▀
 ,▀     ╙▀████▀ ,█▀ 
 █,       ╔█  ▄▀▀   
 ▀▀█▄▄▄▄▄██▀▀▀
Poker         ██▄▄,       
        ▐██████▄,   
        ▀████████▌   
       ▌    ▀█████▀ 
      ██▄▄▄   ███   
        ███▌   ██▌   
    ╒██████▄   ▐█████
    µ    ███▌  ▓█████
   ████████▀  ╓█████▌
  ▐█▌▐█▌    ,▄██████
 ╒▄▄,   ,▄▄███▀▀██▀ 
 ██████████▌         
▄███████████         
  '▀▀▀▀▀▀╙
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
emrebey
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
March 15, 2015, 12:19:13 PM
 #26

starred.

I will try this today. hate mongodb but it's easy to run anyway.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 15, 2015, 01:13:02 PM
Last edit: March 15, 2015, 02:34:56 PM by gamblebuilder
 #27

starred.

I will try this today. hate mongodb but it's easy to run anyway.
mongodb is for demo. in production, should be mysql. it's easy to switch to mysql.

DAL files is in help folder

lugrugzo
Full Member
***
Offline Offline

Activity: 158
Merit: 102


View Profile
March 15, 2015, 02:42:02 PM
 #28

Very poorly coded script also you didn't integrate deposit/withdraw system/admin panel. If you are making something, make it true.

Also read this page: https://github.com/rwaldron/idiomatic.js/

My posts are not an incentive for investing, always do your own home work.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 16, 2015, 02:07:28 AM
Last edit: March 16, 2015, 08:14:07 AM by gamblebuilder
 #29

Very poorly coded script also you didn't integrate deposit/withdraw system/admin panel. If you are making something, make it true.

Also read this page: https://github.com/rwaldron/idiomatic.js/

Talk is cheap. It's an open source project. It's free to use and I am also free to do/not do anything about it.

If  you want to make anything you want, please do it yourself.

bluepoodle
Newbie
*
Offline Offline

Activity: 44
Merit: 0



View Profile
March 17, 2015, 02:41:46 PM
 #30

Good job gamblebuilder. Once completed, if you ever want to sell a copy, I will be your fist customer.
BitcoinExchangeIndia.com
Sr. Member
****
Offline Offline

Activity: 311
Merit: 264


View Profile
March 17, 2015, 10:48:43 PM
 #31

starred.

I will try this today. hate mongodb but it's easy to run anyway.
mongodb is for demo. in production, should be mysql. it's easy to switch to mysql.

DAL files is in help folder

First of all... Great Job. I have 3 Qs...

1. Can it be integrated with blockchain.info send/receive API rather than running own bitcoin daemon ?

2. As you are saying, it can be taken to MySQL, can it be run on PHP-MySQL shared hosting ?

3. Can investment in bankroll be integrated with it ?

lugrugzo
Full Member
***
Offline Offline

Activity: 158
Merit: 102


View Profile
March 17, 2015, 11:43:05 PM
 #32

starred.

I will try this today. hate mongodb but it's easy to run anyway.
mongodb is for demo. in production, should be mysql. it's easy to switch to mysql.

DAL files is in help folder

First of all... Great Job. I have 3 Qs...

1. Can it be integrated with blockchain.info send/receive API rather than running own bitcoin daemon ?

2. As you are saying, it can be taken to MySQL, can it be run on PHP-MySQL shared hosting ?

3. Can investment in bankroll be integrated with it ?

I'm not the owner but here the answers:
1- You can integrate anything to check deposits, but the best way is running your own daemon. Not third-party API's.

2- You can switch to MySql or any other database, but you have to change db queries according to your choose. Also mongodb is not a bad decision.
You can't run this script on a PHP shared hosting because this script doesn't need PHP, it's a node.js app and needs a VPS.

3- Investments can be integrated.

My posts are not an incentive for investing, always do your own home work.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 18, 2015, 03:37:40 AM
Last edit: March 18, 2015, 04:00:02 AM by gamblebuilder
 #33

starred.

I will try this today. hate mongodb but it's easy to run anyway.
mongodb is for demo. in production, should be mysql. it's easy to switch to mysql.

DAL files is in help folder

First of all... Great Job. I have 3 Qs...

1. Can it be integrated with blockchain.info send/receive API rather than running own bitcoin daemon ?

2. As you are saying, it can be taken to MySQL, can it be run on PHP-MySQL shared hosting ?

3. Can investment in bankroll be integrated with it ?

I'm not the owner but here the answers:
1- You can integrate anything to check deposits, but the best way is running your own daemon. Not third-party API's.

2- You can switch to MySql or any other database, but you have to change db queries according to your choose. Also mongodb is not a bad decision.
You can't run this script on a PHP shared hosting because this script doesn't need PHP, it's a node.js app and needs a VPS.

3- Investments can be integrated.

Thanks for answering.
I probably will integrated with blockchain.info because it's for demo and I don't want to donwload 20G+ block data.
Since APIs of blockchain.info are similar with bitioncoin demon, so it will be easy to switch to bitcoin demon in production.

There are probably some nodejs shared hosting. But if you want to run such web site. it's better you use a VPS, like aws or azure

velesgs
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
March 18, 2015, 12:03:11 PM
 #34

it would be nice to do another popular currencies such as dogecoin, litecoin
anshar
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


View Profile
March 22, 2015, 06:22:06 PM
 #35

The layout could use some work. As well as this, I think lots of features are missing like a chat, faucet, etc.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 23, 2015, 05:25:53 AM
Last edit: March 23, 2015, 06:14:15 AM by gamblebuilder
 #36

The layout could use some work. As well as this, I think lots of features are missing like a chat, faucet, etc.

Chat has been there, hidden. Click upper right horn to show chat.

Faucet is implemented as well.

Support the project by clicking ads.  Grin

deepbtc
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
March 23, 2015, 07:35:07 AM
 #37

everyone should take a look at https://modulus.io/, its managed node, mongodb hosting meaning that you dont have to worry about the server and scaling as they will take care of everything. (will it be taken down?)

the demo site in ios 8 on iphone 4s crashes the crome app. The sites loads on chrome for android (oppo find 5) but nothing happens when you enter your name, same thing on firefox/chrome for ubuntu.

nice work by the way. how many hours have you worked on this already?

Does anyone know which server hosting primedice uses?

There are two very popular card games here in thailand and i would like to develop them (they will be perfect with Bitcoin). The games are not hard to learn, and are mostly dependent on strategy with a little bit of luck. (you get 4-5 times the amount you invest in if you win and the game takes around 5 minutes sometimes just a few seconds.
elm
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000


View Profile
March 23, 2015, 07:36:46 AM
Last edit: March 23, 2015, 07:56:16 AM by elm
 #38

I tried to go to the demo site but I get a box asking What would like to call yourself? IMO opinion there is the word you missing

but my problem is that I put in a nickname and click go but nothing is happening........I can't go to the site

any idea what I am missing here? thanks

edit: using chrome
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 23, 2015, 08:03:40 AM
Last edit: March 23, 2015, 10:54:02 AM by gamblebuilder
 #39

I tried to go to the demo site but I get a box asking What would like to call yourself? IMO opinion there is the word you missing

but my problem is that I put in a nickname and click go but nothing is happening........I can't go to the site

any idea what I am missing here? thanks

edit: using chrome

probably just try more times. The site has to be accessed via domain name: http://ccroll.com  to make reCaptcha work.

After you enter your name,  the site will create a new account for you with balance 0.

You need to check "I am not a robot" to get some "free" bitcoins and then you can play.

The server is slow sometimes. Anyone volunteer a shared hosting?

The project uses websocket. So browser should be more updated.


gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 23, 2015, 08:06:25 AM
 #40

everyone should take a look at https://modulus.io/, its managed node, mongodb hosting meaning that you dont have to worry about the server and scaling as they will take care of everything. (will it be taken down?)

the demo site in ios 8 on iphone 4s crashes the crome app. The sites loads on chrome for android (oppo find 5) but nothing happens when you enter your name, same thing on firefox/chrome for ubuntu.

nice work by the way. how many hours have you worked on this already?

Does anyone know which server hosting primedice uses?

There are two very popular card games here in thailand and i would like to develop them (they will be perfect with Bitcoin). The games are not hard to learn, and are mostly dependent on strategy with a little bit of luck. (you get 4-5 times the amount you invest in if you win and the game takes around 5 minutes sometimes just a few seconds.

I have not tried on every browser. I am using chrome/firefox on windows.
It should be working on modern browser which support websocket.

It may not be browser's issue. Just refresh page several times and turn off adblock(it has faucet now), and it may work again. Slow server... Tongue

soowein
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
March 25, 2015, 07:32:05 AM
 #41

The demo site is hosted on a free server. So the server may be slow or unstable sometime.


You can download the code and run it on your local machine.

Please show me where i can download it !

Thanks !
alloffmyhate
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


It's Never End


View Profile
March 25, 2015, 08:28:30 AM
 #42

The demo site is hosted on a free server. So the server may be slow or unstable sometime.


You can download the code and run it on your local machine.

Please show me where i can download it !

Thanks !

are u dont see github link ?

emrebey
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
March 25, 2015, 08:48:57 AM
 #43

The demo site is hosted on a free server. So the server may be slow or unstable sometime.


You can download the code and run it on your local machine.

Please show me where i can download it !

Thanks !

here you go - in case of you are not aware the most used version control system in the planet-

https://github.com/popmanhe/Node_Dice/archive/master.zip
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 25, 2015, 12:31:53 PM
 #44

The demo site is hosted on a free server. So the server may be slow or unstable sometime.


You can download the code and run it on your local machine.

Please show me where i can download it !

Thanks !

There is a  “Download Zip" button on the page. Click that button to download zip file. Grin

gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
March 29, 2015, 01:34:27 PM
Last edit: April 08, 2015, 12:39:12 PM by gamblebuilder
 #45

demo site is moved to an ubuntu server with nginx as web server.

Give it a try. Don't forget to check "I am not a robot" to get some "free" bitcoin and play. Grin


Emerge
Legendary
*
Offline Offline

Activity: 854
Merit: 1000



View Profile
October 17, 2015, 01:13:45 AM
 #46

Grin Grin Grin Grin Grin

Amazing project mate. is the repo still updated?
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
October 17, 2015, 01:31:09 AM
 #47

Grin Grin Grin Grin Grin

Amazing project mate. is the repo still updated?

It's a basic demo site. I can update it if there is a new idea coming in.


Emerge
Legendary
*
Offline Offline

Activity: 854
Merit: 1000



View Profile
October 17, 2015, 02:16:30 AM
 #48

Grin Grin Grin Grin Grin

Amazing project mate. is the repo still updated?

It's a basic demo site. I can update it if there is a new idea coming in.



Does it still use Blockchain.info API?
It should use Block.io (or something I forgot)
so it can use LTC, DOGE and BTC at the same time
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
October 17, 2015, 02:19:28 AM
 #49

Grin Grin Grin Grin Grin

Amazing project mate. is the repo still updated?

It's a basic demo site. I can update it if there is a new idea coming in.



Does it still use Blockchain.info API?
It should use Block.io (or something I forgot)
so it can use LTC, DOGE and BTC at the same time

Yes. I will check out block.io as well. It's good to add new coins. Thanks.

lol3c
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500



View Profile
October 18, 2015, 03:22:42 PM
 #50

Is this entirely made by you. It looks amazing, i might add it on my website. Thanks for sharing!
ADcoin.me
Hero Member
*****
Offline Offline

Activity: 795
Merit: 500


Name change soon (hopefully)


View Profile WWW
October 18, 2015, 03:53:32 PM
 #51

Opensource dice site is what the community needs. Coders can join forces and develope a fair and secure dice site. Way to go OP.

Well said! Keep up the good work, I will watch it closely. This needs a lot more work, but it is starting to look pretty damn good Smiley

Palcoin.co
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
October 19, 2015, 07:29:49 AM
 #52

Opensource dice site is what the community needs. Coders can join forces and develope a fair and secure dice site. Way to go OP.

Well said! Keep up the good work, I will watch it closely. This needs a lot more work, but it is starting to look pretty damn good Smiley

Thanks. Grin

DoubleDROP.xyz
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile WWW
November 08, 2015, 09:20:25 PM
 #53

Hell, Having a problem with the install on a ubuntu 15 box.

Error is as follows:

Code:
:~/Node_Dice# npm install
npm WARN Invalid name: "Node Dice"
npm WARN EPACKAGEJSON /root/Node_Dice No description
npm WARN EPACKAGEJSON /root/Node_Dice No repository field.
npm WARN EPACKAGEJSON /root/Node_Dice No README data
npm WARN EPACKAGEJSON /root/Node_Dice No license field.

Invalid name:"Node_Dice" leads me to believe that the installer may have an error in it.

*FIXED: The package.json file on the 2nd line was missing a "_" on this code >   "name": "Node Dice".

Maybe change that? Or would you like me to push a commit to the git?
DoubleDROP.xyz
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile WWW
November 09, 2015, 01:54:25 AM
Last edit: November 09, 2015, 04:09:21 AM by DoubleDROP.xyz
 #54

Now seemingly running into a different error when trying the install.
The web server starts but the kerberos files fail to build it seems.
Error log below:

Code:
make: Entering directory '/root/dice/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory
compilation terminated.
kerberos.target.mk:94: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory '/root/dice/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.2.0-16-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/dice/node_modules/kerberos
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

> utf-8-validate@1.2.1 install /root/dice/node_modules/utf-8-validate
> node-gyp rebuild

Looking into getting this kerberos security application but having a hell of a time locating it.
Anyone ever set this up before and mind giving me a crash course?

*Got Kerberos running I beleive. Still trying to get the thing to link into my wallet.
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
November 09, 2015, 04:44:11 AM
 #55

I am sorry. But I can't help you with setup. The problem may be related to so many issues.

If you have questions about code, I'd be happy to help.



Now seemingly running into a different error when trying the install.
The web server starts but the kerberos files fail to build it seems.
Error log below:

Code:
make: Entering directory '/root/dice/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory
compilation terminated.
kerberos.target.mk:94: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory '/root/dice/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.2.0-16-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/dice/node_modules/kerberos
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

> utf-8-validate@1.2.1 install /root/dice/node_modules/utf-8-validate
> node-gyp rebuild

Looking into getting this kerberos security application but having a hell of a time locating it.
Anyone ever set this up before and mind giving me a crash course?

*Got Kerberos running I beleive. Still trying to get the thing to link into my wallet.

DoubleDROP.xyz
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile WWW
November 09, 2015, 09:13:46 AM
 #56

I think I have gotten kerberos installed..

Managed to get it to show the balances on the accounts. But am unable to get withdraws to send..
Also having a hell of a time changing "BTC" on the site to "DROP"
gamblebuilder (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
November 09, 2015, 02:22:28 PM
 #57

I think I have gotten kerberos installed..

Managed to get it to show the balances on the accounts. But am unable to get withdraws to send..
Also having a hell of a time changing "BTC" on the site to "DROP"

Withdraw part is not done yet. I am working on other project. I will add it later.

Change BTC to DROP? I think coin list is a partial, add or change it, it will change everywhere.  Or search 'BTC' and replace it.
But you still need to write some code to deposit/withdraw for that coin.

BoostTM
Copper Member
Jr. Member
*
Offline Offline

Activity: 70
Merit: 1


View Profile
February 06, 2018, 07:20:32 PM
 #58

I am developing an open source dice game/faucet and host it on github.  

https://github.com/popmanhe/node_dice

I just start it and so it only has some basic functionality.  
I will work on that from time to time and add more features. If you have any ideas to add to it, let me know or just fork it.

********* Tech spec **********
Demo site: http://ccroll.com/   Y

ou can support this project by clicking ads. Or deposit small amount BTC to the address when you play.  Grin

The site is built on
  • Backend: node.js + socket.io + mongodb + handlebars.js(template)
  • Frontend: bootstrap + jquery + knockout.js

 Session uses mongodb as session store, so the site can be expanded to multiple servers.

 Before you run this site, please set up connection to mongodb in config/developement.js or production.js.

  • 2015-02-24:  First commit; Basic features added.
  • 2015-03-11:  Add chat functionality. Chat messages can be saved to database and kept for a week(using mongodb TTL index).
  • 2015-03-18:  Get bitcoin address from Blockchain.info and can be saved to user account.
  • 2015-03-21:  Will update balance for deposit every 30 seconds once BTC address is generated;
                 User name has to be unique(unique index in place);
  • 2015-03-22:  Bitcoin faucet implemented. Use google reCaptcha to verify user is not rebot.
                     Amount of faucet and interval can be adjusted in config file.


If you have any questions, contact me at: popman.he@gmail.com.

I am also open for coding jobs. I have 15+ years of design/coding experience.

My tech stacks include asp.net, c#, vb.net, node.js,  html, javascript, sql server, oracle, mongodb, redis.
How do I install the game? on my host? I have no idea  Roll Eyes

Talk to me
Pages: 1 2 3 [All]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!