Casino Lobby / Launcher
Bowie is a simple casino lobby. I've created this to learn more about frontend.
Project Showcase: Casino Lobby / Launcher
This is an app I'm currently developing from scratch utilizing Lumen (backend), React/NextJS (frontend), Docker/Kubernetes (container).
Simple casino lobby, modular game suppport - api is dockerized and lumen (php), frontend nextjs just set env BACKEND_URL and you're good to go.
Eventually is to make this mini 'starter' for future use when creating actual unique/indepth apps, hence why trying to dockerize as much as possible.
Nextjs Middleware
All API & auth requests are tunneled through the next.js frontend middleware (so direct API is hidden and no cors issue).
It appends the JWT token to headers on each API request, check out middleware.ts in root dir at ryan-west-casino/bowie-frontend.
Auth
Works on JWT, generated on backend api. Included on frontend is a simple login & register screen.
You can also create sessions by appending "token" params in URL query if you wish to skip the login screens and redirect user direct to game.
Lobby
Lobby includes overview of all balances, games and user info direct from API response.
Internal game
As being focussed on improve my frontend skills, there are simple inhouse games included. Result is generated in backend, balance of players, auth and so on is all through backend.
Meta can be set on launching game (I will be working on expanding meta to include all info, including language variables from API).
External game
API does have external games support, however I do not have access currently to legal game provider, but it's straight forward to implement (any) provider.
Game list for lobby is loaded from the GameKernel.php, including meta info like name/desc and so on.
Demo:
Github
Follow progress at:
- frontend: ryan-west-casino/bowie-frontend.
- backend: ryan-west-casino/bowie-backend.