# casino **Repository Path**: nodejs_1/casino ## Basic Information - **Project Name**: casino - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-29 - **Last Updated**: 2024-01-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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 (nuxt@^2) - https://nuxtjs.org/docs/get-started/installation/ * Backend (adonis@^4) - https://legacy.adonisjs.com/docs/4.1/installation * Database - https://legacy.adonisjs.com/docs/4.1/database ## Frontend: * Vue.js * Tailwind * БЭМ (small) * Socket.io * Vue-tailwind (UI) * i18n internalization (RU & EN) * @nuxtjs/auth with social ### Link storage (Linux): sudo ln -s /absolute_path_to/casino/server/public/* /absolute_path_to/casino/static #### Client Setup ```bash # 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](https://nuxtjs.org). #### Server Setup ```bash # 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 * BASE_URL - url to server * CLIENT_URL - url to client #### Env (server) Setup * CLIENT_URL - url to client