qor

command
v0.0.0-...-26742bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 6 Imported by: 0

README

QOR Admin Example Code

This directory holds the code for the "QOR Admin Tutorial" article.

Most of the useful code is located in the admin package.

  • Declaring a QOR Admin easily with a simple constructor
  • Bind to an existing gin router and specify a prefix for all the admin related tasks (such as login, logout and admin interface itself)
  • Initial migration and exported migration from the admin package to create the admin_users table
  • Manage admin users with a special setter for their password and bcrypt encryption in the database
  • Authentication handled by Gin with gin-contrib/sessions and a cookie backend
  • Separating admin-related structs (like admin user) and business structs (the models directory only has business structures)
  • Simple login HTML template using spectre.css

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL