Code Monkey home page Code Monkey logo

dice's Introduction

dice

Provably Fair Dice Script with chat box written in Node.JS, MongoDB and Socket.IO

Written as a single page application providing complete crypto gambling experience like professional crypto casinos.

Minimal frontend is written in pure Javascript which is not optimized for mobile view.

Check Implementation Here: casino.webtricks.website

Test Admin Panel: dummy.webtricks.website. Username: 'admin' Password: 'admin123'

Created By: webtricks

Note: I have written the whole script in just over 4 hours and haven't tested any code so make sure to test each and every line of code if you plan to use any part of this script for PRODUCTION PURPOSE.


How to run script locally

$ git clone https://github.com/web-tricks/dice
$ cd dice
$ npm install
# (make sure to install MongoDB before moving to next step. If you don't know how to install, please check YouTube guide, there are many)
# (Once MongoDB is installed and running locally, edit database name in `config/dev.env` file. 
# Example: MONGOOSE=mongodb://127.0.0.1:27017/casino-database)
$ npm run dev

How to run script on web

You any cloud MongoDB service provider like MongoDB Atlas. Set-up production database. Retrieve database string and set up MONGOOSE environment variable equals to that string.


Other Informations:

  1. To edit front-end of the script. Use src/frontend folder. To save changes, run npm run build command.
  2. I have uploaded config folder which includes dev.env file which is intended to use only for development purposes. Make sure to delete that file and use your own environment variables if you plan to use script in any way.
  3. Anyone is free to use this script for whatever purpose he/she likes. There is no obligation.

BTC Address: 3G8uPe3XKGhyQ2HGZfrmT7yJSxeQ6kJHK4

dice's People

Contributors

dependabot[bot] avatar example123 avatar web-tricks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.