Gin Vue

screenshot of Gin Vue

gin+gorm+jwt+vue

Overview:

The gin-vue project is a front-end and back-end separation project using gin and vue. It utilizes gorm to access MySQL and jwt for controlling permissions on API interfaces. The tutorial covers automatically refreshing tokens within half an hour of expiry to ensure seamless user operations.

Features:

  • Front-end and back-end separation: Utilizes gin and vue for front-end and back-end separation.
  • MySQL integration: Uses gorm to access MySQL for database operations.
  • JWT for API access control: Implements jwt for controlling permissions on API interfaces.
  • Automatic token refresh: Provides functionality to automatically refresh tokens within half an hour of expiry.

Summary:

The gin-vue project offers front-end and back-end separation using gin and vue, with features like MySQL integration, JWT for API access control, and automatic token refresh. For installation, users need to run the provided MySQL script, modify the database connection configuration, and run the program using go run main.go. For further enhancements and decoupling, the gin-vue-admin project is recommended as it builds upon the gin-vue project with dependency injection.