This is a Golang API for managing the wallets of the players of an online casino, where one can create an account, credit a wallet, debit a wallet and also get a wallet balance .
Tech Stack
Golang
Gin
MySQL Database
Local Setup
To setup the api on your local machine,
Clone this project.
Copy and paste the .env.example file in the same directory.
Rename the newly copied file to .env.
Setup your local database, open the .env file and assign values of DB_NAME, DB_USER, DB_PASS, DB_HOST, JWT_SECRET
to the name, username, password, host and your jwt secret respectively for the newly created database.