This is a simple API built with Go and the Gin framework. It connects to a database to fetch information about Yu-Gi-Oh cards.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Go (version 1.16 or later is recommended)
- Gin framework
- A MySQL database
- Clone the repository to your local machine.
- Navigate to the project directory.
- Run
go get
to download the necessary Go packages. - Update the
dbConnection
package with your database connection details.
To start the server, run:
go run main.go
The server will start on port 8080.
GET /cards: Fetches a list of all cards. GET /test: A test endpoint that fetches all table names from the database. This is a temporary endpoint for testing purposes and will be removed in the future.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details