myhero
v0.1.2
Published
A nodejs game server, based on [NetEase/myhero](https://github.com/NetEase/myhero).
Downloads
51
Readme
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 .