Bitcoin Forum

Bitcoin => Project Development => Topic started by: gamblebuilder on March 13, 2015, 02:30:28 AM



Title: Dice Game/Faucet Open Sourced On GITHUB
Post by: gamblebuilder on March 13, 2015, 02:30:28 AM
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.  ;D

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.


Title: Re: dice game open sourced on github
Post by: anshar on March 13, 2015, 03:22:49 AM
The demo site doesn't even work...


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 13, 2015, 05:41:32 AM
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.


Title: Re: dice game open sourced on github
Post by: TriggerX on March 13, 2015, 05:44:05 AM
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?


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 13, 2015, 06:19:17 AM
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.


Title: Re: dice game open sourced on github
Post by: zetaray on March 13, 2015, 06:26:52 AM
Opensource dice site is what the community needs. Coders can join forces and develope a fair and secure dice site. Way to go OP.


Title: Re: dice game open sourced on github
Post by: yogg on March 13, 2015, 06:31:22 AM
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 (http://altdice.net) in a production environment.


Title: Re: dice game open sourced on github
Post by: deeprocks on March 13, 2015, 06:37:46 AM
Can someone please check for backdoors?
I really want to use this script for making a dice site


Title: Re: dice game open sourced on github
Post by: deeprocks on March 13, 2015, 06:39:18 AM
Can you add an invest feature in the script? By this gamblers would be able to invest in the bankroll


Title: Re: dice game open sourced on github
Post by: yogg on March 13, 2015, 06:40:14 AM
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.


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 13, 2015, 06:46:15 AM
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 :)


Title: Re: dice game open sourced on github
Post by: TriggerX on March 13, 2015, 07:32:24 AM
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!


Title: Re: dice game open sourced on github
Post by: sbankerdemon on March 13, 2015, 07:42:21 AM
Good work bro. I will contact you in future for some coding work. :) :)


Title: Re: dice game open sourced on github
Post by: elm on March 13, 2015, 07:38:55 PM
following with interest


Title: Re: dice game open sourced on github
Post by: franckuestein on March 13, 2015, 08:01:47 PM
The demo site it's working "fine" for me…  :D

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.  ;)


Title: Re: dice game open sourced on github
Post by: RocketSingh on March 13, 2015, 08:23:29 PM
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 ?


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 14, 2015, 03:57:41 AM
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.


Title: Re: dice game open sourced on github
Post by: anshar on March 14, 2015, 04:03:09 AM
Why not open a site with the stuff you got? It looks great by the way!


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 14, 2015, 08:49:48 AM
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.  ;D


Title: Re: dice game open sourced on github
Post by: dukeneptun on March 14, 2015, 12:35:57 PM
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 .  :P


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 14, 2015, 02:10:12 PM
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 .  :P

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


Title: Re: dice game open sourced on github
Post by: velesgs on March 14, 2015, 02:16:30 PM
Good script, I will follow the development.


Title: Re: dice game open sourced on github
Post by: velesgs on March 14, 2015, 02:37:19 PM
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


Title: Re: dice game open sourced on github
Post by: Bit_Happy on March 14, 2015, 10:30:54 PM
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.  :)


Title: Re: dice game open sourced on github
Post by: Small on March 15, 2015, 02:38:19 AM
So how do you integrate this with the daemon?


Title: Re: dice game open sourced on github
Post by: emrebey on March 15, 2015, 12:19:13 PM
starred.

I will try this today. hate mongodb but it's easy to run anyway.


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 15, 2015, 01:13:02 PM
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


Title: Re: dice game open sourced on github
Post by: lugrugzo on March 15, 2015, 02:42:02 PM
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/


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 16, 2015, 02:07:28 AM
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.


Title: Re: dice game open sourced on github
Post by: bluepoodle on March 17, 2015, 02:41:46 PM
Good job gamblebuilder. Once completed, if you ever want to sell a copy, I will be your fist customer.


Title: Re: dice game open sourced on github
Post by: BitcoinExchangeIndia.com on March 17, 2015, 10:48:43 PM
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 ?


Title: Re: dice game open sourced on github
Post by: lugrugzo on March 17, 2015, 11:43:05 PM
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.


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 18, 2015, 03:37:40 AM
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


Title: Re: Dice Game Open Sourced On GITHUB
Post by: velesgs on March 18, 2015, 12:03:11 PM
it would be nice to do another popular currencies such as dogecoin, litecoin


Title: Re: Dice Game Open Sourced On GITHUB
Post by: anshar on March 22, 2015, 06:22:06 PM
The layout could use some work. As well as this, I think lots of features are missing like a chat, faucet, etc.


Title: Re: Dice Game Open Sourced On GITHUB
Post by: gamblebuilder on March 23, 2015, 05:25:53 AM
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.  ;D


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: deepbtc on March 23, 2015, 07:35:07 AM
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.


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: elm on March 23, 2015, 07:36:46 AM
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


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: gamblebuilder on March 23, 2015, 08:03:40 AM
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 (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.



Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: gamblebuilder on March 23, 2015, 08:06:25 AM
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... :P


Title: Re: dice game open sourced on github
Post by: soowein on March 25, 2015, 07:32:05 AM
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 !


Title: Re: dice game open sourced on github
Post by: alloffmyhate on March 25, 2015, 08:28:30 AM
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 ?


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: emrebey on March 25, 2015, 08:48:57 AM
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


Title: Re: dice game open sourced on github
Post by: gamblebuilder on March 25, 2015, 12:31:53 PM
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. ;D


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: gamblebuilder on March 29, 2015, 01:34:27 PM
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. ;D



Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: Emerge on October 17, 2015, 01:13:45 AM
;D ;D ;D ;D ;D

Amazing project mate. is the repo still updated?


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: gamblebuilder on October 17, 2015, 01:31:09 AM
;D ;D ;D ;D ;D

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.



Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: Emerge on October 17, 2015, 02:16:30 AM
;D ;D ;D ;D ;D

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


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: gamblebuilder on October 17, 2015, 02:19:28 AM
;D ;D ;D ;D ;D

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.


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: lol3c on October 18, 2015, 03:22:42 PM
Is this entirely made by you. It looks amazing, i might add it on my website. Thanks for sharing!


Title: Re: dice game open sourced on github
Post by: ADcoin.me on October 18, 2015, 03:53:32 PM
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 :)


Title: Re: dice game open sourced on github
Post by: gamblebuilder on October 19, 2015, 07:29:49 AM
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 :)

Thanks. ;D


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: DoubleDROP.xyz on November 08, 2015, 09:20:25 PM
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?


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: DoubleDROP.xyz on November 09, 2015, 01:54:25 AM
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.


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: gamblebuilder on November 09, 2015, 04:44:11 AM
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.


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: DoubleDROP.xyz on November 09, 2015, 09:13:46 AM
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"


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: gamblebuilder on November 09, 2015, 02:22:28 PM
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.


Title: Re: Dice Game/Faucet Open Sourced On GITHUB
Post by: BoostTM on February 06, 2018, 07:20:32 PM
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.  ;D

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  ::)