evdevru / casino

Gambling casino with game crash
178 stars 113 forks source link

Gambling template casino

Casino with game of crash. In development used websockets (socket.io), node.js (adonis.js) and nuxt.js.
Demo: https://www.youtube.com/watch?v=ZP6pCAx_dkY

Installation:

Frontend:

Link storage (Linux):

sudo ln -s /absolute_path_to/casino/server/public/* /absolute_path_to/casino/static

Client Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out Nuxt.js docs.

Server Setup

# goto server older
$ cd server

# install dependencies
$ npm install

# generate app key
$ adonis key:generate

# migrate database
$ adonis migration:run

# generate bots
$ adonis seed

# serve at localhost:3333
$ adonis serve

Env (client) Setup

Env (server) Setup