Gorig is a comprehensive web service framework based on the Go programming language. It provides a complete development model and toolchain. You can quickly create a new project or module using gorig-cli.
📚 Project Wiki: https://deepwiki.com/jom-io/gorig
🔧 Operations Dashboard: https://github.com/jom-io/gorig-om
go get github.com/jom-io/gorig@latestInstall globally via npm:
npm install -g gorig-cliOr run directly using npx:
npx gorig-cli@latest <command>Use the init command to create a new project:
gorig-cli init my-new-projectOr use npx:
npx gorig-cli@latest init my-new-projectThis will create a new project in the current directory, including basic files and directories such as _cmd/main.go, domain/init.go, and cron/cron.go.
Create a new module using the create command from the project's root directory:
gorig-cli create userOr use npx:
npx gorig-cli@latest create userThis will create a module named user, including directories such as api/, internal/, model/, and essential boilerplate code.
Navigate to your project directory and run the project using:
cd my-new-project
go run _cmd/main.goOr compile and run:
go build -o my-new-project _cmd/main.go && ./my-new-project