Code Monkey home page Code Monkey logo

liframe's Introduction

LiFrame服务器架构,基于go开发 --武汉疫情期间宅在家中无所事事的成果

通过go命令获取项目

go get github.com/llr104/LiFrame

windows环境下部署方式

数据库表创建

  • 1.修改server\createtables.go 文件的数据库连接配置
  • 2.执行create_db.bat

构建运行

  • 1.执行build.bat
  • 2.修改conf下各个服务器的数据库配置
  • 3.执行run.bat

linux环境下部署方式

数据库表创建

  • 1.修改server\createtables.go 文件的数据库连接配置
  • 2.执行create_db.sh

构建运行

  • 1.执行build.sh
  • 2.修改conf下各个服务器的数据库配置
  • 3.执行run.sh

默认方式会启动loginserver、gateserver、masterserver、worldserver、gameserver各一个服, 但是loginserver、gateserver、worldserver、gameserver支持分布式部署可以通过修改run_by_conf.bat脚本中启动服务的配置,实现启动多个同一类型的服务

众志成城,共同战疫,武汉加油,**加油,世界加油

如果你有对项目有建议或疑惑,QQ群1054084192欢迎拍砖

后面会基于该架构完成一个slg的三国游戏,slg的服务器代码会全部上传到GitHub,slg的客户端暂时不开源

slg三国已经开源了,基于liFrame基础上做了改动的架构

服务器源码:https://github.com/llr104/slgserver

客户端源码:https://github.com/llr104/slgclient

liframe's People

Contributors

llr104 avatar

Watchers

James Cloos avatar

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.