Consists of the platform pages - Slots betting casino and more.
- Node v10.12.0 with npm
- NVM
- Thor: To work with the platform frontend, you'll have to deploy the contracts to a locally running Vechain Thor instance, follow the instructions in https://github.com/vechain/thor for local install or use with docker. For now, You can find the contracts published as a npm package @decent-bet/contract-slots.
- KYC Backend running (with own dependencies)
- Slots Channels API running (with own dependencies)
-
Clone de repository:
git clone git@github.com:decent-bet/platform-frontend.git
cd platform-frontend
If you use nvm run:
nvm use
-
Install dependencies:
npm i
-
Update git submodules for games:
git submodule update --init
Or for specific branchd run
git submodule foreach git checkout origin [YOUR_BRANCH] && git submodule foreach git pull origin [YOUR_BRANCH]
-
Run the dev server for frontend hot reloading:
npm start
You can open your browser and open http://localhost:3000.
-
To build the application for development, staging or production, use the corresponding npm script. A bundle will be in the build folder at the root of the application.
Just run
npm run [NPM_SCRIPT]
games
: Copy all the games from our private package to thepublic/slots
folder,start
: Starts the dev server withlocal
environtment,start:develop
: Starts the dev server withdevelopment
environtment,start:staging
: Starts the dev server withstaging
environtment,start:prod
: Starts the dev server withproduction
environtment,build:local
: Make a bundle build withlocal
environtmentbuild:develop
: Make a bundle build withdevelopment
environtmentbuild:staging
: Make a bundle build withstaging
environtmentbuild:prod
: Make a bundle build withproduction
environtmentdeploy
: Build a container image and Deploy to GCP.deploy:develop
: Build a container image and deploy to GCP, Runs the scriptbuild:develop
inside the container.deploy:staging
: Build a container image and deploy to GCP, Runs the scriptbuild:staging
inside the container.deploy:prod
: Build a container image and deploy to GCP, Runs the scriptbuild:prod
inside the container.deploy:local
: Build a container image and run on local with docker-compose, Runs the scriptbuild:local
inside the container.
-
You can deploy the build files using a simple express server and pm2, serve or nginx.
-
If you want, you can deploy using docker, check or Dockerfile and docker-compose.yml files.