gen

(β˜… 1,439)

Converts a database into gorm structs and RESTful api

  • .gitignore
  • .travis.yml
  • code_dao_gorm.md
  • code_dao_sqlx.md
  • code_http.md
  • code_model.md
  • code_protobuf.md
  • go.mod
  • LICENSE
  • main-packr.go
  • main.go
  • Makefile
  • README.md
  • release.history
  • release.sh
  • test.sh

# Installation Guide

1. Get the code
git clone https://github.com/smallnest/gen

Downloads the entire project code from GitHub to your computer.

cd gen

Moves into the project folder you just downloaded.

2. Go

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Go The Go compiler and toolchain.
$ go install github.com/smallnest/gen@latest

Type this command into your terminal and run it.

βœ… If the build finishes without errors, it worked. If you used go run ., check the terminal output.

Pulled directly from this repo's README.

3. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make

Compiles the code based on the generated build configuration to produce an executable.

βœ… If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation