Skip to content

tech-thinker/gozen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gozen

Simplified Golang MVC code generator.

Read project documentation for more information here: Documentation.

Installation

Download and install executable binary from GitHub releases page.

Linux Installation

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

MacOS Installation

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

Windows Installation

curl -sL https://github.com/tech-thinker/gozen/releases/download/v1.0.0/gozen-windows-amd64.exe -o gozen.exe
gozen.exe

CLI Guide

  • 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