A Cornell University sports betting app that allows students to place bets on student-athletes.
All In is a sports betting app built for Cornell University students, enabling them to place bets on student-athletes' performances. The application integrates with a MySQL database to store and manage betting data and is powered by Spring Boot.
Before setting up the project, ensure you have the following installed:
After cloning, cd
into the repo and run:
git config core.hooksPath .github/hooks
to enable the pre-commit hookchmod +x .github/hooks/pre-commit
to mark the hook as an executable
Create a new application.properties
file located in src/main/resources/
by copying the application.properties.template
file in the same directory. Run:
cp application.properties.template application.properties
Fill in the values in application.properties
for the fields below with your MySQL credentials:
spring.datasource.username
spring.datasource.password
Change spring.datasource.url
if you are not hosting a MySQL instance locally.
Enter the MySQL Shell by running:
mysql -u {MYSQL USERNAME} -p
Create the all_in database with:
CREATE DATABASE all_in;
Run:
mvn -N wrapper:wrapper
pip install pre-commit
./mvnw spring-boot:run
Swagger Docs API Documentation can be found at /swagger-ui/index.html