Giter Club home page Giter Club logo

acore_db_app-project's Introduction

Documentation Status https://img.shields.io/badge/Release_History!--None.svg?style=social https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social https://img.shields.io/badge/Acore_Doc--None.svg?style=social&logo=readthedocs

Welcome to acore_db_app Documentation

https://acore-db-app.readthedocs.io/en/latest/_static/acore_db_app-logo.png

AzerothCore 魔兽世界服务器后端有一个数据库. 基于数据库我们可以开发出很多有创造力的 App. 这里有两个痛点:

  1. 出于安全考虑, 我们只能允许位于 AWS EC2 上的游戏服务器能跟数据库网络直连. 在本地的 App 开发过程连接到数据库, 以及让最终的 App 连接到数据库都是一个挑战.
  2. 当基于数据库的 App 开发完毕后, 这个 App 以什么形式给最终用户使用? Web App? 桌面 GUI? 网络安全又如何保障?

该项目是一个针对这个需求的完整解决方案, 它包含两个组件 CLISDK.

  1. CLI 是在 AWS EC2 游戏服务器上安装的一个命令行工具. 把常用的数据库 App 功能以及输入输出用 CLI 包装好供外部用户调用. 这些 CLI 命令的输入通常是和对应 Python 函数一致的参数, 而输出通常是将数据序列化成 JSON 然后打印到 stdout.
  2. SDK 则是可以在任何地方运行的一系列 API. 这些 API 会用 SSM Run Command 远程调用位于 EC2 上的 CLI, 然后将 stdout 中的数据解析并返回.

简而言之, CLI 是服务端的 App, SDK 是客户端的 App. 并且 SDK 是基于 CLI 的封装. 两者结合就能实现任何有权限的开发者都能从任何地方安全地运行数据库 App 的功能, 而无需位于数据库所在的 VPC 中.

AzerothCore Database Schema Reference:

在 EC2 上安装完 acore_db_app CLI 之后, 你可以用下面的命令测试:

/home/ubuntu/git_repos/acore_db_app-project/.venv/bin/acdb hello

Get latest N quests for a character:

/home/ubuntu/git_repos/acore_db_app-project/.venv/bin/acdb quest get-latest-n-quest --char ${character}

Install

acore_db_app is released on PyPI, so all you need is to:

$ pip install acore-db-app

To upgrade to latest version:

$ pip install --upgrade acore-db-app

acore_db_app-project's People

Contributors

machu-gwu avatar

Watchers

 avatar  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.