Author

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

copper member
Activity: 70
Merit: 1
February 06, 2018, 02: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, 09: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, 04: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 08, 2015, 11:44:11 PM
#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, 08: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, 04: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, 02: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, 10: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, 10: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, 09: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, 09: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, 08: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, 08: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, 08: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, 07: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, 03: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, 03: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, 02: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, 03: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, 03: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.

elm
legendary
Activity: 1050
Merit: 1000
March 23, 2015, 02:36:46 AM
#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
newbie
Activity: 50
Merit: 0
March 23, 2015, 02: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.
member
Activity: 108
Merit: 10
March 23, 2015, 12:25:53 AM
#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
sr. member
Activity: 350
Merit: 250
March 22, 2015, 01: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.
newbie
Activity: 30
Merit: 0
March 18, 2015, 07:03:11 AM
#34
it would be nice to do another popular currencies such as dogecoin, litecoin
member
Activity: 108
Merit: 10
March 17, 2015, 10:37:40 PM
#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
full member
Activity: 158
Merit: 102
March 17, 2015, 06: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.
sr. member
Activity: 311
Merit: 264
March 17, 2015, 05: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 ?
newbie
Activity: 44
Merit: 0
March 17, 2015, 09:41:46 AM
#30
Good job gamblebuilder. Once completed, if you ever want to sell a copy, I will be your fist customer.
member
Activity: 108
Merit: 10
March 15, 2015, 09:07:28 PM
#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.
full member
Activity: 158
Merit: 102
March 15, 2015, 09:42:02 AM
#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/
member
Activity: 108
Merit: 10
March 15, 2015, 08:13:02 AM
#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
sr. member
Activity: 476
Merit: 250
March 15, 2015, 07:19:13 AM
#26
starred.

I will try this today. hate mongodb but it's easy to run anyway.
sr. member
Activity: 266
Merit: 250
Grow SMALL amount of BTC by earning it
March 14, 2015, 09:38:19 PM
#25
So how do you integrate this with the daemon?
legendary
Activity: 2114
Merit: 1040
A Great Time to Start Something!
March 14, 2015, 05: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
newbie
Activity: 30
Merit: 0
March 14, 2015, 09:37:19 AM
#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
newbie
Activity: 30
Merit: 0
March 14, 2015, 09:16:30 AM
#22
Good script, I will follow the development.
member
Activity: 108
Merit: 10
March 14, 2015, 09:10:12 AM
#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.
legendary
Activity: 1064
Merit: 1000
March 14, 2015, 07:35:57 AM
#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
member
Activity: 108
Merit: 10
March 14, 2015, 03: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
sr. member
Activity: 350
Merit: 250
March 13, 2015, 11:03:09 PM
#18
Why not open a site with the stuff you got? It looks great by the way!
member
Activity: 108
Merit: 10
March 13, 2015, 10:57:41 PM
#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.
legendary
Activity: 1662
Merit: 1050
March 13, 2015, 03: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 ?
legendary
Activity: 1960
Merit: 1130
Truth will out!
March 13, 2015, 03: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
elm
legendary
Activity: 1050
Merit: 1000
March 13, 2015, 02:38:55 PM
#14
following with interest
full member
Activity: 168
Merit: 100
http://pachinko.games-bit.com/
March 13, 2015, 02:42:21 AM
#13
Good work bro. I will contact you in future for some coding work. Smiley Smiley
hero member
Activity: 826
Merit: 1000
March 13, 2015, 02: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!
member
Activity: 108
Merit: 10
March 13, 2015, 01: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
legendary
Activity: 2464
Merit: 3158
March 13, 2015, 01: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.
member
Activity: 87
Merit: 10
March 13, 2015, 01:39:18 AM
#9
Can you add an invest feature in the script? By this gamblers would be able to invest in the bankroll
member
Activity: 87
Merit: 10
March 13, 2015, 01:37:46 AM
#8
Can someone please check for backdoors?
I really want to use this script for making a dice site
legendary
Activity: 2464
Merit: 3158
March 13, 2015, 01: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.
hero member
Activity: 658
Merit: 500
March 13, 2015, 01: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.
member
Activity: 108
Merit: 10
March 13, 2015, 01: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.
hero member
Activity: 826
Merit: 1000
March 13, 2015, 12: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?
member
Activity: 108
Merit: 10
March 13, 2015, 12: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.
sr. member
Activity: 350
Merit: 250
March 12, 2015, 10:22:49 PM
#2
The demo site doesn't even work...
member
Activity: 108
Merit: 10
March 12, 2015, 09:30:28 PM
#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: [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.
Jump to: