A nodejs game server, based on [NetEase/myhero](https://github.com/NetEase/myhero).
npm install myheroA nodejs game server, based on NetEase/myhero.
shell
$ git clone https://github.com/justlua/myhero.git
`but we recommend you to global install myhero:
`shell
$ npm install myhero -g
`
Note: maybe you should use sudo to npm installUsage
First of all, you should initialize a your project after install:
`shell
$ myhero init
`
A directory will be created after init done,
and then you can find two important directories under :
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:
`shell
$ cd
$ cd game-server
$ myhero start .
`and stop server just run:
`shell
$ myhero stop .
``