The Bets is a ready-to-use application for processing data such as blocking users, processing .csv files, that contains information about bets, report blocked users and report bets.
Let's execute following steps to start:
- Git clone this repository
- Run:
cd [your project destination]
- Create database "bets"
- In terminal, you should run command
flyway -locations=filesystem:./migrations -user=su -password=su -url=jdbc:postgresql://localhost:5432/bets migrate
- Build and run your application
You can specify your own port in .env
file.
There are test files in repository. If you want to test application - run:
go test -v
If you want to run all tests of application - run:
go test -v ./...
To add test coverage - run
go test -v -coverpkg=./... -coverprofile=coverage.out ./...
For questions and support please contact me in Vkontakte.
We welcome contributions from everyone. The develop
contains the development version. You can branch of from develop
and create a pull request, or maintain your own fork and submit a cross-repository pull request.