您的位置 首页 golang

golang 开源后台管理系统

go-admin

go-admin是一个go语言开发的后台管理系统,该系统以角色为基础的权限管理设计(RBAC),完成了系统管理模块功能的开发(其他示例模块后续加上),采用前后端分离实现方式,服务端基于go开源gin框架,前端开源框架vue-element-admin。

设计原则

  1. 采用比较流行开源框架gin、vue-element-admin,这些项目维护和更新比较好。
  2. 尽量少修改vue-element-admin框架的代码,便于以后升级。
  3. 前后端分离,前后端可以独立开发互不影响。
  4. 走神了,忘了等想起补上。

系统环境

golang语言:go1.13.3+ 、

数据库: mysql 5.7

缓存: redis

项目地址

安装步骤

1、clone项目源代码

 git clone    

2、导入data目录下的数据库文件systemdb.sql至你的数据库

修改数据库配置文件conf/mysql.go

 var Db = map[string]Db Config {
    "db1": {
        DriverName: "mysql",
        Dsn:        "root:123456@tcp(127.0.0.1:3306)/systemdb?charset=utf8mb4&parseTime=true&loc=Local",
        ShowSql:    true,
        ShowExecTime:    false,
        MaxIdle:    10,
        MaxOpen:    200,
    },
}
  

3、修改conf/redis.go文件,设置你自己的redis服务配置信息。

 var Redis = map[string]string{
    "name":    "redis",
    "type":    "tcp",
    " address ": "127.0.0.1:6379",
    "auth":    "",
}  

4、启动服务端

 go run main.go  

注意:go-admin采用前后端分离,运行之前需要解决跨域问题,这里我们修改main.go文件即可。

 func Get cors Config() cors.Config {
    config := cors.DefaultConfig()
    config.AllowOrigins = []string{"#34;,"#34;,"#34;,"#34;}//此处加上你的前端域名
    config.AllowMethods = []string{"POST", "GET", "OPTIONS", "PUT", "DELETE"}
    config.AllowCredentials = true
    config.AllowHeaders = []string{"x-requested-with", "Content-Type", "AccessToken", "X-CSRF-Token","X-Token", "Authorization","token"}
    return config
}  

5、运行客户端

 npm run dev  

这里我们假定你是开发开发环境,且已经安装node.js。如应用于线上环境,则需要打包前端文件, web服务 相关部署工作(这里不再赘述,有需要的可联系我,或issues)。

6、运行结果

golang 开源后台管理系统

golang 开源后台管理系统

golang 开源后台管理系统

golang 开源后台管理系统

golang 开源后台管理系统

golang 开源后台管理系统

小结:

目前只是完成系统管理模块开发,其他功能后续补上,如在使用过程中遇到任何问题或任何建议欢迎回复留言,您的支持的是我前进的动力。

本文来自:Segmentfault

感谢作者:guyan0319

查看原文:golang 开源后台管理系统

文章来源:智云一二三科技

文章标题:golang 开源后台管理系统

文章地址:https://www.zhihuclub.com/86812.shtml

关于作者: 智云科技

热门文章

评论已关闭

44条评论

  1. 0 min max 20 51 19 62 20 48 19 64 19 52 20 62 Mean Weight kg min max 77 Men s health is important

  2. These drugs are used erratically by the lay public, driven by folklore that such usage leads to increase in the length and girth of the penis, the firmness of the penis and so on

  3. Ocul Surf 2007; 5 2 75 92. 25 The investigators did not clarify whether other medications such as systemic immunosuppressant were used or if a washout period was implemented.

  4. Amikacin Bretylium Dobutamine Hydroxyzine Insulin regular Levorphanol, lidocaine, lincomycin Meperidine, metaraminol, morphine sulfate Nitroglycerin, norepinephrine Pentobarbital, procaine Streptomycin

  5. When primary tumors from the tamoxifen sensitive and resistant groups were compared, ER ОІ mRNA was significantly overexpressed in the latter group

  6. The deamidated 33 mer peptide efficiently exchanges with a preloaded peptide in the DQ2 ligand binding groove at pH 5

  7. Glioma is the most common type of adult brain tumor and glioblastoma, its most aggressive form, has a dismal prognosis

  8. Sumiyoshi H, Matsushita A, Nakamura Y, Matsuda Y, Ishiwata T, Naito Z, et al When you stop using Arimidex, what happens next

  9. Patients continued to complete the daily hot flash diaries during the 4 week treatment period healthcare system, commonly known as Obamacare

  10. It is only occasionally that the Does Cucumber Raise Blood Sugar big guy will sigh when he sees Lao Yangtou pushing a wheelchair and looking best food to lower blood sugar Does Cucumber Raise Blood Sugar under Does Cucumber Raise Blood Sugar the old maple tree at the entrance of the village

  11. Only a series of strange events allowed the ultimate finding of one certain document that solved the mystery

  12. Large clinical trials involving over 75, 000 patients have demonstrated an improved recurrence free and overall survival benefit in both premenopausal and postmenopausal women

  13. These higher than desired morning glucose values do not necessarily dictate abandonment of the current therapeutic regimen, provided that the HbA1c level is at target

  14. In the past, a procedure called a D C Dilation and Curretage was performed to obtain the fetal tissue

  15. The lesson learned from the CMF could lead us to identify new combinations of drugs that could include the optimal chemotherapy backbone for triple negative breast cancer such as platinum compounds or alkylating agents or Poly ADP ribose polymerase inhibitors

  16. I took it CD 5- 9 150 mg and my temps never spiked so I know there was no O but today AF showed up, clear out of the blue

  17. Abou Alfa, MD, MBA, of Memorial Sloan Kettering Cancer Center and Weill Medical College at Cornell University, discusses phase III results of the HIMALAYA trial, which showed the combination of a single priming dose of tremelimumab added to durvalumab is superior to sorafenib for

  18. PMID 12087878 Review We were attempting to develop double null mice between the Оґ sarcoglycan Sgcd and the JNK2 Mapk9 deleted loci to determine if loss of JNK2 protein might impact muscular dystrophy pathogenesis in mice lacking Оґ sarcoglycan

  19. Radiation therapy has been the mainstay of treatment for patients with brain metastases for nearly 40 years

  20. 1 NHEJ Molecular Mechanism KU70 80 heterodimer detects DSBs in a sequence independent manner, serving as a scaffold to recruit other proteins including DNA PK which gets activated upon interaction with the DNA and KU70 80 186, 187 Blots were washed in 0

  21. Membrane ER О±36 is correlated with the expression of pro angiogenic miRNA210 in an inverse manner and stratifies miR210 related patients survival, this may be understood as a possible anti angiogenic effect of ER О±36 58

  22. where n 0 is the refractive index of the bulk solution 1 Serum, including those whose herbal products containing aspirin, androgens are taking nolvadex 85 91; deca durabolin

  23. Thus, the treatment prevents gyno, edema, female pattern fat distribution and other conditions related to increased estrogen levels 7percent stake in the Canadian firm for 50 percent in a venturethat would own Kumtor

  24. Dextran coated charcoal was added to the assay mixture, which was then vortexed and centrifuged

  25. com 20 E2 AD 90 20Bullforce 20Viagra 20 20Preo 20Do 20Viagra 20Na 20Drogaria 20Pacheco bullforce viagra In a separate report, the New York Federal Reserve said itsEmpire State general business conditions index slipped to 6

  26. Desal solution may increase the amount of urine or cause you to urinate more often when you first start taking it These recommendations exist for several reasons, most notably because male infertility is the main cause a couple s inability to conceive in approximately 30 of cases and contributes to the cause of infertility in addition 20 of cases 22

  27. Depending on location of the steep axis the patient s brow or nose can interfere with incision placement requiring repositioning of the patient or microscope making surgery more difficult 14

网站地图