# Anomalocaris **Repository Path**: siusn/anomalocaris ## Basic Information - **Project Name**: Anomalocaris - **Description**: 多人网游贪吃蛇 - **Primary Language**: Lua - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-05-18 - **Last Updated**: 2021-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Anomalocaris #### 介绍 多人网游贪吃蛇 #### 编码说明 * 状态码:0 表示成功 * 错误码:18 在中国有十八层地狱的说法,圣经中666是魔鬼的符号,三个6加起来刚好是18,所以这里用18表示出了异常,后续完善异常信息的话,错误码也都用18开头 * deploy.sh 部署脚本,是整个部署过程的最初入口。 * install.sh 安装工具包和依赖库 * build.sh 构建运行环境 * run.sh 构建docker容器时的初始化脚本 * start.sh 启动服务的脚本 * 默认端口 resty:14000 turritopsis:14001 aurelia:14002 #### 软件架构 + shell + openresty + lua + docker #### 安装教程 1. 检出 如果没有安装git,则先安装git。 ubuntu系统下命令为: ```shell apt install -y git ``` redhat系统下命令为: ```shell yum install -y git ``` 检出代码 ```shell git clone https://gitee.com/siusn/anomalocaris.git ``` 2. 进入目录 ```shell cd anomalocaris ``` 3. 部署 1、使用bash调用文件(推荐) ```shell bash deploy.sh ``` 2、赋予执行权限直接运行 ```shell # 赋予执行权限 chmod +x deploy.sh # 执行 ./deploy.sh ``` #### 使用说明 1. 本仓库代码并不是一个可单独工作的服务,本工程的存在是为了方便Aurelia和Turritopsis的部署,因为本项目涉及的东西比较多, 手动部署会花费很多时间。 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)