Track game scores for your favorite sports. Admin panel for easy data management (add, update, delete games) created with Vue.
Built with Go and MySQL for a clean and efficient backend.
Clone repository
- MySQL server installed and running
- MySQL client tool or access to the MySQL command line
- MySQL username and password
Command Line: Open a terminal or command prompt and type mysql -u your_username -p
(replace your_username with your actual username).
Graphical Client: Open your preferred MySQL client tool (e.g., MySQL Workbench).
Enter your password when prompted.
Command Line: Type the following command and press Enter:
Bash
source path/to/data.sql
Replace path/to/data.sql
with the actual path to the sports_mysql.sql
file.
Graphical Client: Use the client's "Open file" or "Execute script" option to select and run the sports_mysql.sql
file.
Type SHOW DATABASES;
to check if the sports
database was created successfully.
Type SHOW TABLES FROM sports;
to view the tables created within the sports
database.
- Ensure you have the necessary permissions to create databases and tables if you encounter errors.
- Edit the sports_mysql.sql file before running it again to modify the database structure.
- Refer to the official MySQL documentation https://www.mysql.com/ for more advanced MySQL operations.
- Git installed and configured
- Go installed (Download from: https://go.dev/doc/install)
- Cloned Sports-API repository
Use `cd` command to change directories to the cloned repository location.
Run `go mod download` to download required packages.
Run `go build` to build the backend (refer to project documentation for specific commands).
Run `go run main.go` to run backend.