├── server ├── .prod.env ├── .projectile ├── README.md ├── test │ ├── Spec.hs │ ├── Poker │ │ ├── HandSpec.hs │ │ └── UtilsSpec.hs │ └── PokerSpec.hs ├── Setup.hs ├── .dockerignore ├── ChangeLog.md ├── .dev.env ├── server.service ├── Dockerfile ├── .gitignore ├── docs │ ├── socket.md │ ├── lobbyAPI.md │ └── userAPI.md ├── bootstrap.sh ├── deploy-server.sh ├── provision.sh ├── ping.sh ├── src │ ├── Socket │ │ ├── Setup.hs │ │ ├── Utils.hs │ │ ├── Auth.hs │ │ ├── Lobby.hs │ │ ├── Subscriptions.hs │ │ ├── Workers.hs │ │ └── Types.hs │ ├── Types.hs │ ├── Schema.hs │ ├── Env.hs │ ├── Poker │ │ └── Game │ │ │ ├── Hands.hs │ │ │ ├── Privacy.hs │ │ │ └── Blinds.hs │ └── Users.hs ├── UNLICENSE.txt ├── deploy.sh ├── app │ └── Main.hs ├── package.yaml ├── stack.yaml.lock ├── stack.yaml └── shell.nix ├── client ├── .dockerignore ├── config │ ├── jest-mocks │ │ ├── image.js │ │ └── cssModule.js │ ├── test-setup.js │ ├── jest.config.js │ ├── webpack.prod.babel.js │ ├── webpack.dev.babel.js │ └── webpack.base.babel.js ├── .prettierrc ├── jest.config.js ├── app │ ├── styles │ │ ├── components │ │ │ ├── _footer.scss │ │ │ ├── _lobby.scss │ │ │ ├── _forms.scss │ │ │ ├── game │ │ │ │ ├── _boardCards.scss │ │ │ │ ├── _actionPanel.scss │ │ │ │ ├── _slider.scss │ │ │ │ ├── _cards.scss │ │ │ │ ├── _seat.scss │ │ │ │ └── _table.scss │ │ │ ├── _buttons.scss │ │ │ ├── _game.scss │ │ │ └── _navbar.scss │ │ ├── _common.scss │ │ ├── main.scss │ │ ├── common │ │ │ ├── _colours.scss │ │ │ ├── _mixins.scss │ │ │ └── _variables.scss │ │ └── layout │ │ │ └── _app.scss │ ├── containers │ │ ├── HomeContainer.js │ │ ├── NavBarContainer.js │ │ ├── ProfileContainer.js │ │ ├── LobbyContainer.js │ │ ├── SignInFormContainer.js │ │ ├── SignUpFormContainer.js │ │ ├── AppContainer.js │ │ └── GameContainer.js │ ├── components │ │ ├── Home.js │ │ ├── Signout.js │ │ ├── Profile.js │ │ ├── Footer.js │ │ ├── NotFoundPage.js │ │ ├── Board.js │ │ ├── Lobby.js │ │ ├── Card.js │ │ ├── SignInForm.js │ │ ├── App.js │ │ ├── Seat.js │ │ ├── NavBar.js │ │ ├── SignUpForm.js │ │ └── ActionPanel.js │ ├── selectors │ │ ├── lobby.js │ │ ├── profile.js │ │ ├── socket.js │ │ ├── route.js │ │ ├── tests │ │ │ └── games.test.js │ │ ├── auth.js │ │ └── games.js │ ├── reducers │ │ ├── lobby.js │ │ ├── games.js │ │ ├── rootReducer.js │ │ ├── profile.js │ │ ├── auth.js │ │ ├── socket.js │ │ └── tests │ │ │ └── auth.test.js │ ├── actions │ │ ├── socket.js │ │ ├── lobby.js │ │ ├── types.js │ │ ├── profile.js │ │ ├── games.js │ │ ├── auth.js │ │ └── tests │ │ │ └── auth.test.js │ ├── utils │ │ └── request.js │ ├── index.html │ ├── reducers.js │ ├── app.js │ ├── configureStore.js │ └── middleware │ │ └── socket.js ├── server │ ├── util │ │ ├── argv.js │ │ ├── port.js │ │ └── logger.js │ ├── middlewares │ │ ├── frontendMiddleware.js │ │ ├── addProdMiddlewares.js │ │ └── addDevMiddlewares.js │ └── index.js ├── static │ ├── fonts │ │ ├── MonoP-Bold.woff │ │ ├── MonoP-Medium.woff │ │ ├── aktivgrotesk.ttf │ │ ├── sentinel-book.ttf │ │ ├── sentinel-light.ttf │ │ ├── aktivgrotesk-black.ttf │ │ ├── aktivgrotesk-bold.ttf │ │ ├── GothamPro │ │ │ ├── GothamPro-Black.ttf │ │ │ ├── GothamPro-Bold.ttf │ │ │ ├── GothamPro-Book.ttf │ │ │ ├── GothamPro-Light.ttf │ │ │ ├── GothamNarrow-Bold.ttf │ │ │ ├── GothamNarrow-Book.ttf │ │ │ ├── GothamPro-Black.woff2 │ │ │ ├── GothamPro-Bold.woff2 │ │ │ ├── GothamPro-Book.woff2 │ │ │ ├── GothamPro-Light.woff2 │ │ │ ├── GothamPro-Medium.ttf │ │ │ ├── GothamPro-Medium.woff2 │ │ │ └── GothamNarrow-Medium.ttf │ │ ├── cabin │ │ │ ├── cabin-v14-latin-500.ttf │ │ │ ├── cabin-v14-latin-500.woff │ │ │ └── cabin-v14-latin-500.woff2 │ │ └── raleway │ │ │ ├── raleway-v14-latin-200.woff │ │ │ ├── raleway-v14-latin-300.woff │ │ │ ├── raleway-v14-latin-500.woff │ │ │ ├── raleway-v14-latin-700.woff │ │ │ ├── raleway-v14-latin-800.woff │ │ │ ├── raleway-v14-latin-200.woff2 │ │ │ ├── raleway-v14-latin-300.woff2 │ │ │ ├── raleway-v14-latin-500.woff2 │ │ │ ├── raleway-v14-latin-700.woff2 │ │ │ ├── raleway-v14-latin-800.woff2 │ │ │ ├── raleway-v14-latin-regular.woff │ │ │ └── raleway-v14-latin-regular.woff2 │ ├── Diamonds.svg │ ├── Hearts.svg │ ├── Clubs.svg │ └── Spades.svg ├── .gitignore ├── .editorconfig ├── .eslintignore ├── .travis.yml ├── Dockerfile ├── shell.nix ├── netlify.toml ├── .babelrc ├── images │ ├── diamond.svg │ ├── heart.svg │ ├── club.svg │ └── spade.svg ├── LICENSE.md ├── .eslintrc ├── .gitattributes ├── package.json └── README.md └── docker-compose.yml /server/.prod.env: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /server/.projectile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /server/README.md: -------------------------------------------------------------------------------- 1 | # Server 2 | -------------------------------------------------------------------------------- /client/config/jest-mocks/image.js: -------------------------------------------------------------------------------- 1 | module.exports = 'IMAGE_MOCK' 2 | -------------------------------------------------------------------------------- /server/test/Spec.hs: -------------------------------------------------------------------------------- 1 | {-# OPTIONS_GHC -F -pgmF hspec-discover #-} 2 | -------------------------------------------------------------------------------- /client/config/jest-mocks/cssModule.js: -------------------------------------------------------------------------------- 1 | module.exports = 'CSS_MODULE' 2 | -------------------------------------------------------------------------------- /server/Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /client/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "semi": false 4 | } 5 | -------------------------------------------------------------------------------- /client/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./config/jest.config') 2 | -------------------------------------------------------------------------------- /client/app/styles/components/_footer.scss: -------------------------------------------------------------------------------- 1 | .footer { 2 | background: green; 3 | } -------------------------------------------------------------------------------- /server/.dockerignore: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | .gitignore 3 | .stack-work 4 | Dockerfile -------------------------------------------------------------------------------- /server/ChangeLog.md: -------------------------------------------------------------------------------- 1 | # Changelog for poker-server 2 | 3 | ## Unreleased changes 4 | -------------------------------------------------------------------------------- /client/server/util/argv.js: -------------------------------------------------------------------------------- 1 | module.exports = require('minimist')(process.argv.slice(2)) 2 | -------------------------------------------------------------------------------- /client/app/containers/HomeContainer.js: -------------------------------------------------------------------------------- 1 | import Home from '../components/Home' 2 | 3 | export default Home -------------------------------------------------------------------------------- /client/static/fonts/MonoP-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/therewillbecode/poker-maison/HEAD/client/static/fonts/MonoP-Bold.woff -------------------------------------------------------------------------------- /client/static/fonts/MonoP-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/therewillbecode/poker-maison/HEAD/client/static/fonts/MonoP-Medium.woff -------------------------------------------------------------------------------- /client/static/fonts/aktivgrotesk.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/therewillbecode/poker-maison/HEAD/client/static/fonts/aktivgrotesk.ttf -------------------------------------------------------------------------------- /client/static/fonts/sentinel-book.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/therewillbecode/poker-maison/HEAD/client/static/fonts/sentinel-book.ttf -------------------------------------------------------------------------------- /client/server/util/port.js: -------------------------------------------------------------------------------- 1 | const argv = require('./argv') 2 | 3 | module.exports = parseInt(argv.port || process.env.PORT || '3000', 10) 4 | -------------------------------------------------------------------------------- /client/static/fonts/sentinel-light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/therewillbecode/poker-maison/HEAD/client/static/fonts/sentinel-light.ttf -------------------------------------------------------------------------------- /client/static/fonts/aktivgrotesk-black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/therewillbecode/poker-maison/HEAD/client/static/fonts/aktivgrotesk-black.ttf -------------------------------------------------------------------------------- /client/static/fonts/aktivgrotesk-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/therewillbecode/poker-maison/HEAD/client/static/fonts/aktivgrotesk-bold.ttf -------------------------------------------------------------------------------- /server/.dev.env: -------------------------------------------------------------------------------- 1 | dbConnStr='port=5432 user=postgres dbname=postgres password=postgres' 2 | port=8000 3 | secret="wwaaifidsa9109f0dasfda-=2-13" 4 | 5 | -------------------------------------------------------------------------------- /client/app/components/Home.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const Home = () => ( 4 |
2 |
3 |