Development prerequisites:
Windows system, please make sure your Windows system contains source code compilation tools. The source code of Node.js is mainly composed of C code and JavaScript code, but the gyp tool is used for source code project management, which is written in Python language. On the Windows platform, Node.js uses gyp to generate Visual Studio Solution files, which are eventually compiled into binary files through the VC compiler. Therefore, please make sure your Windows system meets the following two conditions before installation:
* Python (2.5 * VC Compiler, included in Visual Studio 2010 (VC 2010 Express is also available) node version 0.8.22 pomelo version 0.3.5 1: Install pomelo 2: Try pomelo installation to see if it is ok 3: Start development This will create a basic pomelo development environment, including game-server and web-server folders 4: The next step is to install node modules Directly under the project directory, type The installation is complete 5: Then enter the game-server directory Type You can complete the startup of the server code 6: Then enter the web-server directory Install the components client library first (make sure component is installed before installation, use npm install -g component to install) Type Then in the web-server directory node app Follow the prompts and you can view the effect on the browser
npm install -g pomelo
pomelo --help
pomelo init pomelo_demo
npm-install.bat
pomelo start
bin\component.bat