repositorypackage
1.0.0
Repository: https://github.com/usama-tariq1/leet-gin.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
Golang Api Framework
This template should help get you started developing with Golang
Current Project is Based on Gorm and Gin-Gonic
Project Setup
Clone project and run
go get
Project Setup
Install Cli
go install https://github.com/usama-tariq1/leet-astro
Test Cli
leet-astro
Create project
leet-astro init ProjectName "ModUser"
example
leet-astro init Test "github.com/usama-tariq1"
assuming go 1.18 or greater is already installed on system
Install Dependencies
go get
Database Config .env
copy .env.example and make .env file fill in Database configs
Compile with
This will also create migrations in database if tables are not already created
With Cli
leet-astro serve
With Out Cli
go run main.go
note that project does not support hot reload
Cli Create Commands
Create Controller
With Resource and methods already built
leet-astro create controller ControllerName --model=ModelName
With out methods
leet-astro create controller ControllerName
Create Model
leet-astro create model ModalName
Create Router
leet-astro create router RouterName
Router functions , http and response handling Docs
Gin-Gonic Docs.
Database and ORM Docs
GORM Docs.