Pages:
Author

Topic: Dice Game/Faucet Open Sourced On GITHUB (Read 7738 times)

copper member
Activity: 70
Merit: 1
February 06, 2018, 03: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: [email protected].

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
member
Activity: 108
Merit: 10
November 09, 2015, 10:22:28 AM
#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.
newbie
Activity: 14
Merit: 0
November 09, 2015, 05: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"
member
Activity: 108
Merit: 10
November 09, 2015, 12: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

> [email protected] 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.
newbie
Activity: 14
Merit: 0
November 08, 2015, 09:54:25 PM
#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

> [email protected] 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.
newbie
Activity: 14
Merit: 0
November 08, 2015, 05: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?
member
Activity: 108
Merit: 10
October 19, 2015, 03: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
hero member
Activity: 795
Merit: 500
Name change soon (hopefully)
October 18, 2015, 11:53:32 AM
#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
hero member
Activity: 518
Merit: 500
October 18, 2015, 11:22:42 AM
#50
Is this entirely made by you. It looks amazing, i might add it on my website. Thanks for sharing!
member
Activity: 108
Merit: 10
October 16, 2015, 10:19:28 PM
#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.
legendary
Activity: 854
Merit: 1000
October 16, 2015, 10:16:30 PM
#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
member
Activity: 108
Merit: 10
October 16, 2015, 09:31:09 PM
#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.

legendary
Activity: 854
Merit: 1000
October 16, 2015, 09:13:45 PM
#46
Grin Grin Grin Grin Grin

Amazing project mate. is the repo still updated?
member
Activity: 108
Merit: 10
March 29, 2015, 09:34:27 AM
#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

member
Activity: 108
Merit: 10
March 25, 2015, 08:31:53 AM
#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
sr. member
Activity: 476
Merit: 250
March 25, 2015, 04: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
sr. member
Activity: 280
Merit: 250
It's Never End
March 25, 2015, 04: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 ?
newbie
Activity: 42
Merit: 0
March 25, 2015, 03: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 !
member
Activity: 108
Merit: 10
March 23, 2015, 04: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
member
Activity: 108
Merit: 10
March 23, 2015, 04:03:40 AM
#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.

Pages:
Jump to: