myhero

0.1.2 • Public • Published

Myhero - To Be Your Dream Maker

A nodejs game server, based on NetEase/myhero.

Installation

You can clone myhero into local:

$ git clone https://github.com/justlua/myhero.git

but we recommend you to global install myhero:

$ npm install myhero -g

Note: maybe you should use sudo to npm install

Usage

First of all, you should initialize a your project after install:

$ myhero init <your-project-name>

A <your-project-name> directory will be created after init done, and then you can find two important directories under <your-project-name>: one is game-server, another one is web-server.

For most of developers, we just need focus on game-server.

If your client is a H5 web, web-server will be used, or you can just use web-server to build your http/https server.

Now, let's start game server:

cd <your-project-name>
cd game-server
$ myhero start .

and stop server just run:

$ myhero stop .

/myhero/

    Package Sidebar

    Install

    npm i myhero

    Weekly Downloads

    41

    Version

    0.1.2

    License

    none

    Unpacked Size

    522 kB

    Total Files

    114

    Last publish

    Collaborators

    • xiadi