Qor Admin - Instantly create a beautiful, cross platform, configurable Admin Interface and API for managing your data in minutes.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests test: using name lenght limition to cause update error Feb 11, 2018
views Fix editor insert text not right when init textarea is empty Jan 16, 2019
.babelrc upgrade packages to the latest version and improve date time picker May 2, 2018
.eslintignore feat(eslint) add eslint config Dec 23, 2016
.eslintrc feat(eslint) update eslint Jan 13, 2017
.eslintrc.json feat(eslint) update eslint Jan 13, 2017
.gitignore Don't set resource for metas that is not a relationship Apr 27, 2017
README.md Update doc link Jan 8, 2018
action.go Fix bulk action Mar 5, 2018
admin.go admin config add icon Jul 24, 2018
admin_test.go Fix tests Dec 27, 2016
auth.go Rename admin to service Mar 3, 2016
composite_primary_key_callback.go Discard Qor Config Oct 19, 2017
context.go Discard Qor Config Oct 19, 2017
context_test.go Refactor tests with dummy app Apr 27, 2017
controller.go support trancation when update record (#126) Feb 11, 2018
create_record_test.go Test Address should be created in order Jun 2, 2017
delete_record_test.go Refactor tests with dummy app Apr 27, 2017
edit_page_test.go Fix tests May 9, 2018
filter.go Auto config filter Mar 8, 2018
func_map.go menu add icon Jul 24, 2018
func_map_test.go add funmap unsafe_raw May 9, 2017
menu.go menu add icon Jul 24, 2018
menu_test.go Test get menu with ancestor name Dec 22, 2017
meta.go Use Meta's permission Jan 3, 2018
meta_collection_edit.go Combine resource's permission into Meta for single/collection edit Jan 3, 2018
meta_configors.go Add datetime template Mar 6, 2018
meta_datetime.go Don't overwrite meta type if already specfied a value Apr 23, 2018
meta_rich_editor.go Refactor admin Meta Oct 18, 2017
meta_select_many.go [SelectMany] Get PrimaryField from select one config after it configured Oct 25, 2017
meta_select_one.go Add PrimaryField for select many meta config Oct 24, 2017
meta_single_edit.go Combine resource's permission into Meta for single/collection edit Jan 3, 2018
meta_test.go Use GetMeta to replace GetMetaOrNew Oct 9, 2017
package.json upgrade packages to the latest version and improve date time picker May 2, 2018
resource.go admin config add icon Jul 24, 2018
resource_test.go Add more menu tests Apr 5, 2017
route.go RemoveAll for multiple file Jan 22, 2018
route_handler.go Refactor router Oct 17, 2017
route_test.go Fix sort router by matched wildcards Nov 20, 2017
scope.go Add Visible for Scope Sep 27, 2017
searcher.go Fix searcher May 9, 2018
section.go Ignore duplicated configuration for attrs Dec 14, 2017
settings.go Fix using keyword key Mar 9, 2018
setup_test.go Fix admin tests Oct 19, 2017
theme.go Refactor router Oct 17, 2017
transformer.go Rename encoding to transformer Apr 27, 2017
transformer_json.go index only need Read Permission Dec 24, 2018
transformer_json_test.go Test json transformer Apr 27, 2017
transformer_xml.go Encode single_edit, collection_edit fields for XML Apr 27, 2017
transformer_xml_test.go Setup belongs to relationship for JSONTransformer Apr 27, 2017
update_record_test.go test: using name lenght limition to cause update error Feb 11, 2018
utils.go Use utils.GOPATH to get GOPATH Nov 2, 2017
yarn.lock upgrade packages to the latest version and improve date time picker May 2, 2018

README.md

QOR Admin

Instantly create a beautiful, cross platform, configurable Admin Interface and API for managing your data in minutes.

GoDoc

For security issues, please send us an email to security@getqor.com and give us time to respond BEFORE posting as an issue or reporting on public forums.

Features

  • Generate Admin Interface for managing data
  • RESTFul JSON API
  • Association handling
  • Search and filtering
  • Actions/Batch Actions
  • Authentication and Authorization
  • Extendability

Quick Start

package main

import (
  "fmt"
  "net/http"
  "github.com/jinzhu/gorm"
  _ "github.com/mattn/go-sqlite3"
  "github.com/qor/qor"
  "github.com/qor/admin"
)

// Create a GORM-backend model
type User struct {
  gorm.Model
  Name string
}

// Create another GORM-backend model
type Product struct {
  gorm.Model
  Name        string
  Description string
}

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

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

  // Allow to use Admin to manage User, Product
  Admin.AddResource(&User{})
  Admin.AddResource(&Product{})

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

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

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

go run main.go and visit localhost:9000/admin to see the result!

Live DEMO

Documentation

https://doc.getqor.com/admin

License

Released under the MIT License.