QOR Admin

QOR Admin is a Golang framework allows you instantly create a beautiful, cross-platform, configurable Admin Interface for managing your data in minutes.

It is not a Web framework like Chi, Beego or Gin, and it works with them.


  • Generate Admin Interface for managing data
  • Relationships (one to one, one to many, many to many)
  • Search and filtering
  • Actions/Batch Actions
  • Authentication and Authorization
  • Extendability

Quick Start

package main

import (
  _ "github.com/jinzhu/gorm/dialects/sqlite"

// Define a GORM-backend model
type User struct {
  Name string

// Define another GORM-backend model
type Product struct {
  Name        string
  Description string

func main() {
  // Set up the database
  DB, _ := gorm.Open("sqlite3", "demo.db")
  DB.AutoMigrate(&User{}, &Product{})

  // Initalize
  Admin := admin.New(&admin.AdminConfig{DB: DB})

  // Create resources from GORM-backend model

  // Initalize an HTTP request multiplexer
  mux := http.NewServeMux()

  // Mount admin to the mux
  Admin.MountTo("/admin", mux)

  fmt.Println("Listening on: 9000")
  http.ListenAndServe(":9000", mux)

Execute go get -u ./... to install the dependencies, then run go run main.go and visit localhost:9000/admin to see the admin site.

Live Demo

Next Steps

Now you have a basic understanding of QOR Admin, learn to customize it:

results matching ""

    No results matching ""