Gin CLI is a powerful command-line tool designed to help you quickly scaffold Gin Web Framework applications with a standardized project structure and essential components. Focus on building your application without the hassle of initial setup!
Example for Linux:
curl -LO https://github.com/golang-programming/gincli/releases/download/v1.0.0/gin-linux-amd64
chmod +x gin-linux-amd64
sudo mv gin-linux-amd64 /usr/local/bin/gin
gin --versionExample for macOS:
curl -LO https://github.com/golang-programming/gincli/releases/download/v1.0.0/gin-darwin-amd64
chmod +x gin-darwin-amd64
sudo mv gin-darwin-amd64 /usr/local/bin/gin
gin --versionInvoke-WebRequest -Uri "https://github.com/golang-programming/gincli/releases/download/v1.0.0/gin-windows-amd64.exe" -OutFile "gin.exe"
.\gin.exe --versiongit clone https://github.com/golang-programming/gincli.git
cd gincli
go build -o gin
sudo mv gin /usr/local/bin/| Command | Alias | Description |
|---|---|---|
new |
n, create |
Create a new Gin application |
generate |
g |
Generate components like controllers, guards, etc. |
template |
t |
Load application startup templates |
| Subcommand | Alias | Description |
|---|---|---|
controller |
c |
Generate a new controller |
guard |
gd |
Generate a new guard |
resource |
r |
Generate a new resource |
route |
rt |
Generate a new route |
service |
s |
Generate a new service |
gin n -a myappgin g r product -t Restfulgin t -a ecommerce -yAfter generating your application:
-
Navigate to the Project Directory
cd myapp -
Run the Application
go run *.go
For issues or suggestions, please contact us at:
Happy Coding! 🚀
