Giter Club home page Giter Club logo

betting's Introduction

Betting

Final project for CodersLab (Amelco) coding bootcamp. This project implements few core functionalities for online betting industry. Technologies used: Spring Boot, Spring Data, Hibernate, Spring Security (with oauth2), MySQL, Multithreading, JUnit.

Implemented functionality

  • Registering new user.
  • Login via oauth2 - resource owner credentials grant.
  • Placing both single and combined bets.
  • Placing group bets with invited users.
  • Defining win conditions for bets in flexible form, ex. {game.gameFinalScore.partyOneScore} > {game.gameFinalScore.partyTwoScore}
  • Resolving bets and paying out prizes.
  • Transaction support.

Demonstrational operation

To simulate real-world sport events special API end point (POST /demo/feed-event) has been implement which can be feed with simulated live events.

{
  "eventType": "GAME_START",
  "gameId": 0,
  "message": "string",
  "time": "2018-02-24T15:34:10.434Z",
  "value": 0
}

Available event types are: GAME_START, GAME_END, GAME_PART_END, GAME_PART_START, PARTY_ONE_SCORED, PARTY_TWO_SCORED The system will process those events and perform appropriate actions. (for instance feeding GAME_START event will result in changed status of game with specified id, and GAME_END event will cause system to resolve all bets placed for this game).

betting's People

Contributors

maciej-pajak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.