Bet API is a Go-based project designed to handle betting operations efficiently.using native http library with some minimal functions that let's users to make a bet for a event,settle the bet for the event and check users balances
- users ara pre registerd (there is no user auth or create)
- events ara already added
- setlling the bets are done by sending a post call to the /settle_bet endpoint using the event id and the result win/lose
- User authentication and management
- Bet placement and tracking
- Mutual Exclution
- Scalable architecture
- Clone the repository:
git clone https://github.com/Kushan2k/bet-api-golang.git- Navigate to the project directory:
cd bet_api- Install dependencies:
go mod tidy- Start the server:
go run cmd/main.go- Access the API at
http://localhost:8080.
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you bye