Discover Packages
github.com/Digisata/skill-test-tci
command
module
Version:
v0.0.0-...-0e69807
Opens a new window with list of versions in this module.
Published: Feb 16, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
A simple RESTFUL API that provides endpoints to manage football leagues.
Prerequisites
Installation
Clone this repository.
Rename .env.example file to .env and change the variable value with your desired value.
Next, run the below command to migrate the database schema.
migrate -database "mysql://root:{YOUR_MYSQL_PASSWORD}@tcp(localhost:{YOUR_PORT})/{YOUR_DB_NAME}" -path db/migrations up
NOTE: Replace {YOUR_MYSQL_PASSWORD}, {YOUR_PORT}, {YOUR_DB_NAME} with the corresponding value in your .env file.
Then run this command to synchronize all the dependencies.
go mod tidy
After that run the command below to generate the required files for swaggo.
swag init
Finally, run the project.
go run .
Usage
Open your browser and go to http://localhost:3000/swagger/index.html.
NOTE: Replace the 3000 with your defined PORT value in your .env file.
Hanif Naufal – @Digisata – hnaufal123@gmail.com
Distributed under the MIT license. See LICENSE for more information.
Contributing
Fork this repository.
Create your own branch (git checkout -b fooBar).
Commit your changes (git commit -am 'Add some fooBar').
Push to the branch (git push origin fooBar).
Create your awesome Pull Request.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.