Giter Site home page Giter Site logo

dnf-console's Introduction

DNF 后台管理系统

目录

  1. console
    • 后端源码
    • 技术栈:go+gorm+gin
  2. web
    • 前端源码
    • 技术栈:vue3+ts+pinia+ep
  3. dist
    • 最终编译程序

配置修改:

dist/configserver.json 配置项:

更改 DNF 服务器 IP地址

  • host 改为 dnf服务器IP(允许数据库连接得上)
{
  "api": {
    "cors": true
  },
  "auth": {
    "realm": "test zone",
    "secret": "f450a7bdbde3416d22474b9fdc2a3636",
    "id_key": "username",
    "timeout": 43200,
    "max_refresh": 3600
  },
  "game_db": {
    "enable": true,
    "mysql": [
      {
        "key": "d_taiwan",
        "user": "game",
        "password": "uu5!^%jg",
        "host": "192.168.43.143",
        "port": 3306,
        "db": "d_taiwan",
        "charset": "utf8",
        "timeout": 5,
        "multi_statements": false,
        "debug": false
      },
      {
        "key": "taiwan_cain",
        "user": "game",
        "password": "uu5!^%jg",
        "host": "192.168.43.143",
        "port": 3306,
        "db": "taiwan_cain",
        "charset": "utf8",
        "timeout": 5,
        "multi_statements": false,
        "debug": false
      },
      {
        "key": "taiwan_cain_2nd",
        "user": "game",
        "password": "uu5!^%jg",
        "host": "192.168.43.143",
        "port": 3306,
        "db": "taiwan_cain_2nd",
        "charset": "utf8",
        "timeout": 5,
        "multi_statements": false,
        "debug": false
      },
      {
        "key": "taiwan_billing",
        "user": "game",
        "password": "uu5!^%jg",
        "host": "192.168.43.143",
        "port": 3306,
        "db": "taiwan_billing",
        "charset": "utf8",
        "timeout": 5,
        "multi_statements": false,
        "debug": false
      },
      {
        "key": "taiwan_login",
        "user": "game",
        "password": "uu5!^%jg",
        "host": "192.168.43.143",
        "port": 3306,
        "db": "taiwan_login",
        "charset": "utf8",
        "timeout": 5,
        "multi_statements": false,
        "debug": false
      }
    ]
  },
  "service": {
    "pid_file": "console.pid",
    "daemon_log": "daemon.log"
  }
}

运行步骤

第一次运行:

main.exe -i  #初始化数据,只需要执行一次,后续只需要启停

后续:

main.exe -x #debug 程序跑,小白这样跑就行了

#### 下面 比较复制,非小白 只需要 -x 就跑起来了
main.exe -k install # windows 安装服务
main.exe -k start # 启动 deamon 服务
main.exe -k stop # 停止 deamon 服务
main.exe -k uninstall # windows 卸妆服务

最终

打开网页,访问地址: http://127.0.0.1:8088 (注:确保你的端口未被占用)

默认登录:

用户名:admin 密码:123

打赏

有木有大佬 请我喝杯咖啡

dnf-console's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dnf-console's Issues

请教中文乱码的问题

昨天拉的最新代码发现跑起来之后中文都变成了 ? 问号
并且也执行了 issues 中的SQL但是乱码依旧

后端怎么启动

你好 请问我用的vscode 运行的 前段是运行了 但是后端不会运行 可以麻烦说一下嘛

【BUG解决】

目前代码中,会读取gold.txt同时写入到服务器中的taiwan_cain_2nd/gold表里。
读取gold.txt的过程中使用正则表达式去分离code和name。
当前使用的正则表达式为\[(.*)],对于[74] name:2009春节导师套[鬼剑士]A这种拥有两对中括号的数据不友好。
可以将正则表达式修改为\[(.*?)\],解决上面的问题。

(因为我已经fork而且做了较多改动,因此不能提PR。。。)

代码请教

你好啊,我并不熟悉go语言,不知道该如何编译才能得到Linux下的可执行文件呢? 希望能给出一些指导,谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.