Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

A student management system using the go programing language with gin-gonic.

Notifications You must be signed in to change notification settings

waruto210/DB-CourseDesign-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

数据库课设后端

一个用golang实现的学生管理系统的后端。使用gin-gonic框架、jwt验证、bcrypt加密密码

DEMO

地址:http://dbcd.imlk.top/

  • 管理员账号:1955000001 密码:1955000001
  • 教师账号:2017211002 密码:2017211002
  • 学生账号:2017211100 密码:2017211100

环境

  • 开发环境:
    • macOS Catalina 10.15.4 19E287 x86_64
    • go version go1.13.7 darwin/amd64
    • MariaDB 5.5.64
    • Intel i7-8569U (8) @ 2.80GHz
    • 16 G Main Memory
  • 运行环境: 为了在满足全校需求的情况下,系统能够流畅运行,建议使用
    • Ubuntu Server 18.04/CentOS 8-1905
    • go 1.13
    • MariaDB 5.5.64
    • AMD ryzen 9 3900x / Intel i9 10900k
    • 64G Main Memory

运行

  1. extra目录下的.sql文件创建数据库和数据库表。

  2. 设置如下环境变量:

export DBURL="${数据库用户名}:${数据库密码}@/${数据库名}?charset=utf8&parseTime=True&loc=Local"

如果连接远程数据库,则设置:

export DBURL="${数据库用户名}:${数据库密码}@tcp(${服务器ip}:${端口号})/${数据库名}?charset=utf8&parseTime=True&loc=Local"
  1. 在项目根目录下执行:
go build src/main.go
./main

About

A student management system using the go programing language with gin-gonic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages