Simplified Golang MVC code generator.
Read project documentation for more information here: Documentation.
Download and install executable binary from GitHub releases page.
curl -sL https://github.com/tech-thinker/gozen/releases/download/v1.0.0/gozen-linux-amd64 -o gozen
chmod +x gozen
sudo mv gozen /usr/bin
curl -sL https://github.com/tech-thinker/gozen/releases/download/v1.0.0/gozen-darwin-amd64 -o gozen
chmod +x gozen
sudo mv gozen /usr/bin
curl -sL https://github.com/tech-thinker/gozen/releases/download/v1.0.0/gozen-windows-amd64.exe -o gozen.exe
gozen.exe
gozen
help
gozen -h
- Create new project
gozen create -d <database-driver> -p github.com/<username>/<appname> <appname>
Note: database-driver
is one of postgres
, mysql
, sqlite
.
- Chenge directory to new project directory
cd <appname>
- Install dependencies
go mod tidy
- Change
.env
file as per your requirements and export.env
.
export $(cat .env | xargs)
- Run project
go run main.go start