Code Monkey home page Code Monkey logo

monadical-sas / oddslingers.poker Goto Github PK

View Code? Open in Web Editor NEW
57.0 8.0 16.0 49.53 MB

The Django + React codebase powering the free, open-source poker platform: OddSlingers.com

Home Page: https://oddslingers.com

License: GNU Lesser General Public License v2.1

Shell 1.48% Dockerfile 0.06% Python 25.70% JavaScript 66.52% SCSS 2.09% CSS 1.87% HTML 2.29%
poker open-source game-engine react django poker-platform texas-holdem-poker animation redux-time redux

oddslingers.poker's People

Contributors

afreydev avatar cowpig avatar jdcaballerov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oddslingers.poker's Issues

Create User function can't run properly.

when you create a new user (cmd or web either), it will only add record in oddslingers_user table. with docker-compose.yml and default config.
I manually added root to the stats table。
here is the POC

DO
$$
DECLARE
    _table_name text;
    _column_name text;
    _uuid text := 'b43794a3-d81b-42fa-90a7-791e5e7ad864';
    _query text;
    _result int;
BEGIN
    FOR _table_name, _column_name IN (SELECT table_name, column_name FROM information_schema.columns WHERE table_schema = 'public' AND data_type = 'uuid')
    LOOP
        _query := format('SELECT COUNT(*) FROM %I WHERE %I = %L', _table_name, _column_name, _uuid);
        EXECUTE _query INTO _result;
        IF _result > 0 THEN
            RAISE NOTICE 'Table % contains the UUID', _table_name;
        END IF;
    END LOOP;
END
$$

图片

web error screenshots
图片
图片
图片
图片

the best way to extending the game

I want to know ,is there possible to add new game type like blackjack .
what is the best way to add new game type without breaking existing one
thanks..

Error running docker-compose up

Recent update fixed a number of issues on the quick start, however the last command elicits the following error:

yacron_1    | ZeroDivisionError: float division by zero
yacron_1    | INFO:yacron:Cron job daily-report: reporting failure
yacron_1    | INFO:yacron:Cron job daily-report: reporting permanent failure

Having an error running the application locally with docker compose.

[+] Building 50.5s (8/8) FINISHED                                                                                                                                        
 => [internal] load build definition from Dockerfile.webpack                                                                                                        0.0s
 => => transferring dockerfile: 45B                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                   0.0s
 => => transferring context: 34B                                                                                                                                    0.0s
 => [internal] load metadata for docker.io/library/node:8-alpine                                                                                                    2.7s
 => [internal] load build context                                                                                                                                   0.0s
 => => transferring context: 2.91kB                                                                                                                                 0.0s
 => [1/4] FROM docker.io/library/node:8-alpine@sha256:38f7bf07ffd72ac612ec8c829cb20ad416518dbb679768d7733c93175453f4d4                                              0.0s
 => CACHED [2/4] WORKDIR /opt/oddslingers.poker/core/js                                                                                                             0.0s
 => CACHED [3/4] COPY ./core/js/yarn.lock ./core/js/package.json /opt/oddslingers.poker/core/js/                                                                    0.0s
 => ERROR [4/4] RUN yarn install                                                                                                                                   47.6s
------                                                                                                                                                                   
 > [4/4] RUN yarn install:                                                                                                                                               
#8 0.592 yarn install v1.21.1                                                                                                                                            
#8 0.663 [1/4] Resolving packages...                                                                                                                                     
#8 0.920 [2/4] Fetching packages...                                                                                                                                      
#8 36.43 warning [email protected]: Invalid bin entry for "sha.js" (in "sha.js").                                                                                            
#8 38.89 info [email protected]: The platform "linux" is incompatible with this module.
#8 38.89 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
#8 38.89 info [email protected]: The platform "linux" is incompatible with this module.
#8 38.89 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
#8 38.90 [3/4] Linking dependencies...
#8 43.89 [4/4] Building fresh packages...
#8 46.79 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
#8 46.79 error /opt/oddslingers.poker/core/js/node_modules/node-sass: Command failed.
#8 46.79 Exit code: 1
#8 46.79 Command: node scripts/build.js
#8 46.79 Arguments: 
#8 46.79 Directory: /opt/oddslingers.poker/core/js/node_modules/node-sass
#8 46.79 Output:
#8 46.79 Building: /usr/local/bin/node /opt/oddslingers.poker/core/js/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
#8 46.79 gyp info it worked if it ends with ok
#8 46.79 gyp verb cli [ '/usr/local/bin/node',
#8 46.79 gyp verb cli   '/opt/oddslingers.poker/core/js/node_modules/node-gyp/bin/node-gyp.js',
#8 46.79 gyp verb cli   'rebuild',
#8 46.79 gyp verb cli   '--verbose',
#8 46.79 gyp verb cli   '--libsass_ext=',
#8 46.79 gyp verb cli   '--libsass_cflags=',
#8 46.79 gyp verb cli   '--libsass_ldflags=',
#8 46.79 gyp verb cli   '--libsass_library=' ]
#8 46.79 gyp info using [email protected]
#8 46.79 gyp info using [email protected] | linux | arm64
#8 46.79 gyp verb command rebuild []
#8 46.79 gyp verb command clean []
#8 46.79 gyp verb clean removing "build" directory
#8 46.79 gyp verb command configure []
#8 46.79 gyp verb check python checking for Python executable "python2" in the PATH
#8 46.79 gyp verb `which` failed Error: not found: python2
#8 46.79 gyp verb `which` failed     at getNotFoundError (/opt/oddslingers.poker/core/js/node_modules/which/which.js:13:12)
#8 46.79 gyp verb `which` failed     at F (/opt/oddslingers.poker/core/js/node_modules/which/which.js:68:19)
#8 46.79 gyp verb `which` failed     at E (/opt/oddslingers.poker/core/js/node_modules/which/which.js:80:29)
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/which/which.js:89:16
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/isexe/index.js:42:5
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/isexe/mode.js:8:5
#8 46.79 gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
#8 46.79 gyp verb `which` failed  python2 { Error: not found: python2
#8 46.79 gyp verb `which` failed     at getNotFoundError (/opt/oddslingers.poker/core/js/node_modules/which/which.js:13:12)
#8 46.79 gyp verb `which` failed     at F (/opt/oddslingers.poker/core/js/node_modules/which/which.js:68:19)
#8 46.79 gyp verb `which` failed     at E (/opt/oddslingers.poker/core/js/node_modules/which/which.js:80:29)
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/which/which.js:89:16
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/isexe/index.js:42:5
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/isexe/mode.js:8:5
#8 46.79 gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
#8 46.79 gyp verb `which` failed   stack: 'Error: not found: python2\n    at getNotFoundError (/opt/oddslingers.poker/core/js/node_modules/which/which.js:13:12)\n    at F (/opt/oddslingers.poker/core/js/node_modules/which/which.js:68:19)\n    at E (/opt/oddslingers.poker/core/js/node_modules/which/which.js:80:29)\n    at /opt/oddslingers.poker/core/js/node_modules/which/which.js:89:16\n    at /opt/oddslingers.poker/core/js/node_modules/isexe/index.js:42:5\n    at /opt/oddslingers.poker/core/js/node_modules/isexe/mode.js:8:5\n    at FSReqWrap.oncomplete (fs.js:152:21)',
#8 46.79 gyp verb `which` failed   code: 'ENOENT' }
#8 46.79 gyp verb check python checking for Python executable "python" in the PATH
#8 46.79 gyp verb `which` failed Error: not found: python
#8 46.79 gyp verb `which` failed     at getNotFoundError (/opt/oddslingers.poker/core/js/node_modules/which/which.js:13:12)
#8 46.79 gyp verb `which` failed     at F (/opt/oddslingers.poker/core/js/node_modules/which/which.js:68:19)
#8 46.79 gyp verb `which` failed     at E (/opt/oddslingers.poker/core/js/node_modules/which/which.js:80:29)
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/which/which.js:89:16
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/isexe/index.js:42:5
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/isexe/mode.js:8:5
#8 46.79 gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
#8 46.79 gyp verb `which` failed  python { Error: not found: python
#8 46.79 gyp verb `which` failed     at getNotFoundError (/opt/oddslingers.poker/core/js/node_modules/which/which.js:13:12)
#8 46.79 gyp verb `which` failed     at F (/opt/oddslingers.poker/core/js/node_modules/which/which.js:68:19)
#8 46.79 gyp verb `which` failed     at E (/opt/oddslingers.poker/core/js/node_modules/which/which.js:80:29)
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/which/which.js:89:16
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/isexe/index.js:42:5
#8 46.79 gyp verb `which` failed     at /opt/oddslingers.poker/core/js/node_modules/isexe/mode.js:8:5
#8 46.79 gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
#8 46.79 gyp verb `which` failed   stack: 'Error: not found: python\n    at getNotFoundError (/opt/oddslingers.poker/core/js/node_modules/which/which.js:13:12)\n    at F (/opt/oddslingers.poker/core/js/node_modules/which/which.js:68:19)\n    at E (/opt/oddslingers.poker/core/js/node_modules/which/which.js:80:29)\n    at /opt/oddslingers.poker/core/js/node_modules/which/which.js:89:16\n    at /opt/oddslingers.poker/core/js/node_modules/isexe/index.js:42:5\n    at /opt/oddslingers.poker/core/js/node_modules/isexe/mode.js:8:5\n    at FSReqWrap.oncomplete (fs.js:152:21)',
#8 46.79 gyp verb `which` failed   code: 'ENOENT' }
#8 46.79 gyp ERR! configure error 
#8 46.79 gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
#8 46.79 gyp ERR! stack     at PythonFinder.failNoPython (/opt/oddslingers.poker/core/js/node_modules/node-gyp/lib/configure.js:484:19)
#8 46.79 gyp ERR! stack     at PythonFinder.<anonymous> (/opt/oddslingers.poker/core/js/node_modules/node-gyp/lib/configure.js:406:16)
#8 46.79 gyp ERR! stack     at F (/opt/oddslingers.poker/core/js/node_modules/which/which.js:68:16)
#8 46.79 gyp ERR! stack     at E (/opt/oddslingers.poker/core/js/node_modules/which/which.js:80:29)
#8 46.79 gyp ERR! stack     at /opt/oddslingers.poker/core/js/node_modules/which/which.js:89:16
#8 46.79 gyp ERR! stack     at /opt/oddslingers.poker/core/js/node_modules/isexe/index.js:42:5
#8 46.79 gyp ERR! stack     at /opt/oddslingers.poker/core/js/node_modules/isexe/mode.js:8:5
#8 46.79 gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
#8 46.79 gyp ERR! System Linux 5.10.104-linuxkit
#8 46.79 gyp ERR! command "/usr/local/bin/node" "/opt/oddslingers.poker/core/js/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
#8 46.79 gyp ERR! cwd /opt/oddslingers.poker/core/js/node_modules/node-sass
#8 46.79 gyp ERR! node -v v8.17.0
#8 46.79 gyp ERR! node-gyp -v v3.8.0
#8 46.79 gyp ERR! not ok 
#8 46.79 Build failed with error code: 1
------
executor failed running [/bin/sh -c yarn install]: exit code: 1
ERROR: Service 'webpack' failed to build : Build failed

I'm experiencing this error during the webpack build.
I have tried installing python2 and changing the PYTHON env variable with yarn, nothing seems to help the issue.

I use a MacBook Air M1 2020.
Mac Os version: Monterey

Trouble with settup commands

I'll start with im 5+ years away from running any kind of python app, but I don't think that's relevant to these issues im running into on setup. This is on MacOS Ventura 13.0

Starts on the first command running: docker-compose run django ./manage.py migrate, which elicits

  line 61: mapping key "env_file" already defined at line 47

Opening the file and they do seem to be conflicting lines. I've tried commenting out either, and run the command which actually starts to execute before hitting some django specific error:

=> ERROR [django  8/16] RUN jq -r '.default,.develop | to_entries[] | .  23.6s

Seems like the code hasn't been touched since release, and it works perfectly fine on the hosted site, so im assuming there's something wrong with my local config perhaps.

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.