This is Gambling Game, here you can find Rules:
- Gambling where a random number between 0 - 9 should be generated.
- The player has a starting account of 10,000 points and can use any Set partial amount on the randomly generated number.
- If he is correct, he wins 9 times his stake.
Solution consists of 3 projects:
contains all backend services for Gambling Game, using MongoDB to store players and bets, to test it, you have to first create a new player using this endpoint: /api/players then you can get the playerId from the response so you can use it while adding new bet using this endpoint /api/bets
contains unit test for both services and controllers.
contains the integration tests of the api services
- To run the integration tests, you should have mongodb running on port 27017
- docker-compose up
it's nice to have other frontend project using React to build Gambling Game App and use the backend services