Skip to content

Backend to turn any casino game on real mode including webhook and retaining same url.

Notifications You must be signed in to change notification settings

four-by-two/casino-slots-aggregation-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development

This is currently in development, if you want to get 2000+ casino games etc all:

Game Packages

This repository focusses not so much on games but more on the framework and microservices around it.

While it is released with game packages, it is for you to test, pick and also in production to monitor these game providers.

Frontend

In addition to regular viewblade scaffolding, this app will have nextjs simple frontend for api calls, you can check "minifrontend" within archive directory.

This app currenty supports just logging in, registering and showing data and is to be worked on.

Base Lumen API Features

  • 2FA
  • ACL
  • Anti Phishing Code on email
  • Audit
  • CORS
  • Device authorization
  • Etag
  • Horizon
  • Lumen (9x)
  • Login
  • Login history
  • Multiple localizations, preconfigured with en_US and pt_BR
  • Password reset
  • Password must not be in one of the 4 million weak passwords
  • PHPCS PSR2, phpinsights and sonarqube analysis
  • Register
  • Swoole
  • Tests
  • Transactional events: Listen to events and send notifications only if the transaction is commited
  • uuid

Casino Features

Still working on adding Refactoring and cleaning up for API only casino games. It's wip and will be not so much focussed on quantity of providers but on making productional for all to download. screenshot 2019-02-07 08 26 51

Environment: develop

The oficial php image from Google Cloud Platform is updated once in a lifetime so I decided to manage my own php images at http://github.com/ibrunotome/php

  • Set the .env variables, see .env.example that is already configured to point to pgsql and redis services
  • Run the container with docker-compose -f docker-compose.develop.yml up. Alternatively, if you have an older laptop, try running remotely with Blimp.
  • Enter into app container with docker exec -it default-structure-app bash
  • Run the migrations with php artisan migrate:fresh
  • Run php artisan db:seed to set default keys
  • Run php artisan key:generate to generate secret hash
  • Run php artisan jwt:secret to set JWT auth secret
  • Run php artisan casinodog:restore-default-gameslist {provider_name} upsert to import games for specific provider
  • Run php artisan casinodog:generate-salt to generate random salt used in callback/casino session signing

Check config/casinodog.php for more settings, make sure to set .env properly.

And it's up and running :)

Environment: testing

The container with xdebug is in the Dockerfile.testing, you can get into this container using: docker-compose -f docker-compose.testing.yml up -d app and then:

  • Get into app container with docker exec -it default-structure-app-testing bash (off course, default-structure-app is for the default-structure)
  • Run tests with composer test
  • Run "lint" (phpcs) with composer lint
  • Run "lint and fix" (phpcbf) with composer lint:fix
  • Run phpcpd with composer phpcpd
  • Run php static analysis (level 5) with composer static:analysis
  • Run nunomaduro/phpinsights with php artisan insights

To see sonarqube analysis, simple run docker-compose -f docker-compose.sonarqube.yml up, the quality profile used is PSR-2.

Environment: production

See the contents of the .k8s folder :)

Email layout

screenshot 2019-02-07 08 26 51

Database structure

Screen Shot 2019-05-26 at 17 55 32

Routes

Screen Shot 2019-05-26 at 17 56 41

About

Backend to turn any casino game on real mode including webhook and retaining same url.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published