This project is a Node.js-based API middleware for casino game integration, acting as an intermediary between game providers and the casino's wallet system.
- Handles balance, bet, win, and refund actions
- Integrates with MySQL database for transaction storage
- Dynamic client configuration retrieval
- Request forwarding with authentication
- Error handling and logging
- Node.js (v14+)
- MySQL database
- npm
- Clone the repository
- Run
npm install - Set up
.envfile with database credentials and port - Set up MySQL database tables
Start the server:
API will be available at http://localhost:3000 (or specified port)
Handles all game actions. Accepts parameters as query params, JSON body, or form-data.
Required fields:
action: balance, bet, win, refundplayer_id: Player identifier- Other fields as per action type
Uses HMAC-SHA256 for request signing when forwarding to client wallet system.
Contributions welcome. Please submit a Pull Request.