Skip to content

Latest commit

 

History

History

gin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Example for gin with iris-admin

Initialize

  • Initialize project
 go run gin/cmd/migrate/main.go init

Refresh

  • Refresh project
 go run gin/cmd/migrate/main.go refresh

Migrate Databases

  • Migrate project databases
 go run gin/cmd/migrate/main.go migrate

Rollback Databases

  • Rollback project databases
 go run gin/cmd/migrate/main.go rollback

Notice

  • When you exec migrate or refresh command, it's will seed data to database.
  • If you just exepct create tables to your database and don't want to seed datas into this tables, you need to use --seed=false or -s=false.

Go run

  • Run project
 go run gin/main.go 
 # or
 go build -o example gin/main.go 
 ./example

Open http://127.0.0.1:8085 in browser